Skip to content

Commit

Permalink
BAU: We don't want phone number to be returned if it's falsy
Browse files Browse the repository at this point in the history
This was returning empty string
  • Loading branch information
CarlyG55 committed Dec 10, 2024
1 parent d9d8213 commit b346ce7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/user-info/user-info-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const userInfoController = async (
}

if (validationResult.scopes.includes("phone")) {
userInfo.phone_number = config.getPhoneNumber() ?? undefined;
userInfo.phone_number = config.getPhoneNumber() || undefined;
userInfo.phone_number_verified = config.getPhoneNumberVerified();
}

Expand Down

0 comments on commit b346ce7

Please sign in to comment.