Improved reliability of strictAssert

This commit is contained in:
jamiebuilds-signal 2022-09-14 09:40:50 -07:00 committed by GitHub
parent 1a54d438c2
commit 64a4d2e717
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 8 deletions

View file

@ -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);