We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24ef61d commit cf62538Copy full SHA for cf62538
src/User.ts
@@ -56,7 +56,7 @@ export class User {
56
57
export function getUserAttribute(user: User, name: string): UserAttributeValue | null | undefined {
58
switch (name) {
59
- case <WellKnownUserObjectAttribute>"Identifier": return user.identifier;
+ case <WellKnownUserObjectAttribute>"Identifier": return user.identifier ?? "";
60
case <WellKnownUserObjectAttribute>"Email": return user.email;
61
case <WellKnownUserObjectAttribute>"Country": return user.country;
62
default: return user.custom?.[name];
0 commit comments