From b346ce7e95f01bd893be519971cf7bb8d5a88bdb Mon Sep 17 00:00:00 2001 From: cargil Date: Tue, 10 Dec 2024 09:54:43 +0000 Subject: [PATCH] BAU: We don't want phone number to be returned if it's falsy This was returning empty string --- src/components/user-info/user-info-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/user-info/user-info-controller.ts b/src/components/user-info/user-info-controller.ts index f9579aa..8a9ee96 100644 --- a/src/components/user-info/user-info-controller.ts +++ b/src/components/user-info/user-info-controller.ts @@ -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(); }