Skip to content

Commit

Permalink
Merge pull request #53297 from nyomanjyotisa/issue-52086-2
Browse files Browse the repository at this point in the history
Fix: SMS delivery failure sign in flow in homepage
  • Loading branch information
carlosmiceli authored Nov 30, 2024
2 parents 6d56a85 + 15182a8 commit 32ce9d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pages/signin/SMSDeliveryFailurePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function SMSDeliveryFailurePage() {
return Str.isSMSLogin(credentials.login) ? Str.removeSMSDomain(credentials.login) : credentials.login;
}, [credentials?.login]);

const SMSDeliveryFailureMessage = account?.SMSDeliveryFailureStatus?.message;
const SMSDeliveryFailureMessage = account?.smsDeliveryFailureStatus?.message;

useEffect(() => {
if (!isKeyboardShown) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/signin/SignInPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function getRenderOptions({
const isSAMLEnabled = !!account?.isSAMLEnabled;
const isSAMLRequired = !!account?.isSAMLRequired;
const hasEmailDeliveryFailure = !!account?.hasEmailDeliveryFailure;
const hasSMSDeliveryFailure = !!account?.SMSDeliveryFailureStatus?.hasSMSDeliveryFailure;
const hasSMSDeliveryFailure = !!account?.smsDeliveryFailureStatus?.hasSMSDeliveryFailure;

// True, if the user has SAML required, and we haven't yet initiated SAML for their account
const shouldInitiateSAMLLogin = hasAccount && hasLogin && isSAMLRequired && !hasInitiatedSAMLLogin && !!account.isLoading;
Expand Down
2 changes: 1 addition & 1 deletion src/types/onyx/Account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ type Account = {
delegatedAccess?: DelegatedAccess;

/** Indicates SMS delivery failure status and associated information */
SMSDeliveryFailureStatus?: SMSDeliveryFailureStatus;
smsDeliveryFailureStatus?: SMSDeliveryFailureStatus;
};

export default Account;
Expand Down

0 comments on commit 32ce9d4

Please sign in to comment.