getUUID: Return undefined if uuid is falsey

This commit is contained in:
Scott Nonnenberg 2022-06-27 17:37:56 -07:00 committed by GitHub
parent e0f479ca81
commit 101d53c4ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -71,7 +71,7 @@ export class User {
`Unsupported uuid kind: ${uuidKind}`
);
const uuid = this.storage.get('uuid_id');
if (uuid === undefined) return undefined;
if (!uuid) return undefined;
return new UUID(Helpers.unencodeNumber(uuid.toLowerCase())[0]);
}