about summary refs log tree commit diff
path: root/src/view/shell/createNativeStackNavigatorWithAuth.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/shell/createNativeStackNavigatorWithAuth.tsx')
-rw-r--r--src/view/shell/createNativeStackNavigatorWithAuth.tsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/view/shell/createNativeStackNavigatorWithAuth.tsx b/src/view/shell/createNativeStackNavigatorWithAuth.tsx
index 82dd6d22c..203e7e507 100644
--- a/src/view/shell/createNativeStackNavigatorWithAuth.tsx
+++ b/src/view/shell/createNativeStackNavigatorWithAuth.tsx
@@ -102,10 +102,11 @@ function NativeStackNavigator({
   const {showLoggedOut} = useLoggedOutView()
   const {setShowLoggedOut} = useLoggedOutViewControls()
   const {isMobile, isTabletOrMobile} = useWebMediaQueries()
-  const isNativePWIDisabled = isNative && gate('native_pwi_disabled')
   if (
-    (!PWI_ENABLED || isNativePWIDisabled || activeRouteRequiresAuth) &&
-    !hasSession
+    !hasSession &&
+    (!PWI_ENABLED ||
+      activeRouteRequiresAuth ||
+      (isNative && gate('native_pwi_disabled')))
   ) {
     return <LoggedOut />
   }