Skip to content

Commit ec92505

Browse files
committed
chore(ui): Guard username access
1 parent d8166a6 commit ec92505

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/ui/src/components/SessionTasks/tasks/TaskSetupMfa/SmsCodeFlowScreen.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const getAvailablePhonesFromUser = (user: UserResource | undefined | null
3636
user?.passkeys.length > 0 ||
3737
user?.externalAccounts.length > 0 ||
3838
user?.enterpriseAccounts.length > 0 ||
39-
user.username !== null;
39+
user?.username !== null;
4040

4141
if (phoneNumber.id === user?.primaryPhoneNumber?.id && !hasOtherIdentifications) {
4242
return false;

0 commit comments

Comments
 (0)