Skip to content

Commit

Permalink
Merge pull request #23790 from Expensify/vit-fix23742
Browse files Browse the repository at this point in the history
[CP Staging] Open modal when signing out only when user is offline
  • Loading branch information
techievivek authored Jul 28, 2023
2 parents 25bd2a3 + 9be8ddc commit b5b730d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/settings/InitialSettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function InitialSettingsPage(props) {

const signOut = useCallback(
(shouldForceSignout = false) => {
if (props.network.isOffline || shouldForceSignout) {
if (!props.network.isOffline || shouldForceSignout) {
Session.signOutAndRedirectToSignIn();
return;
}
Expand Down

0 comments on commit b5b730d

Please sign in to comment.