Improved reliability of strictAssert
This commit is contained in:
parent
1a54d438c2
commit
64a4d2e717
5 changed files with 25 additions and 8 deletions
|
@ -184,7 +184,7 @@ export const StandaloneRegistration = ({
|
|||
return;
|
||||
}
|
||||
|
||||
strictAssert(number && code, 'Missing number or code');
|
||||
strictAssert(number != null && code.length > 0, 'Missing number or code');
|
||||
|
||||
try {
|
||||
await registerSingleDevice(number, code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue