From 265016603bc065e9c215aa8d074dfaf3a77a5aaa Mon Sep 17 00:00:00 2001 From: Vivek Kumar <35863227+techievivek@users.noreply.github.com> Date: Fri, 28 Jul 2023 19:22:50 +0530 Subject: [PATCH] Merge pull request #23790 from Expensify/vit-fix23742 [CP Staging] Open modal when signing out only when user is offline (cherry picked from commit b5b730dc02574351524f860e28c0465749a7ae72) --- src/pages/settings/InitialSettingsPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/settings/InitialSettingsPage.js b/src/pages/settings/InitialSettingsPage.js index a92ee760ce21..9907e10e3cfb 100755 --- a/src/pages/settings/InitialSettingsPage.js +++ b/src/pages/settings/InitialSettingsPage.js @@ -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; }