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

(cherry picked from commit b5b730d)
  • Loading branch information
techievivek authored and OSBotify committed Jul 28, 2023
1 parent 586861f commit 2650166
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 2650166

Please sign in to comment.