Skip to content

Commit

Permalink
reset sign-in logic on sign out
Browse files Browse the repository at this point in the history
  • Loading branch information
war-in committed Nov 28, 2024
1 parent d41a209 commit 76a08e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/settings/InitialSettingsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ function InitialSettingsPage({currentUserPersonalDetails}: InitialSettingsPagePr
HybridAppActions.retryOldDotSignInAfterFailure(credentials.autoGeneratedLogin, credentials.autoGeneratedPassword);
} else {
signOutAndRedirectToSignIn(undefined, undefined, false);
HybridAppActions.resetStateAfterSignOut();
}
},
}
Expand Down Expand Up @@ -301,6 +302,7 @@ function InitialSettingsPage({currentUserPersonalDetails}: InitialSettingsPagePr
icon: Expensicons.Exit,
action: () => {
signOut(false);
HybridAppActions.resetStateAfterSignOut();
},
},
],
Expand Down

0 comments on commit 76a08e4

Please sign in to comment.