diff options
author | dan <dan.abramov@gmail.com> | 2024-07-04 21:15:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-04 21:15:47 +0100 |
commit | 1c6bfc02fb9da56281bdc449a951725fb2ec808d (patch) | |
tree | 4e9755c98b06b4a622026205425b5dcb95902a84 /src/view/shell/createNativeStackNavigatorWithAuth.tsx | |
parent | d03dd8c8154e11bf7603ba37cf0ee5a580ec11d1 (diff) | |
download | voidsky-1c6bfc02fb9da56281bdc449a951725fb2ec808d.tar.zst |
Fix order of checks in experiment (#4734)
Diffstat (limited to 'src/view/shell/createNativeStackNavigatorWithAuth.tsx')
-rw-r--r-- | src/view/shell/createNativeStackNavigatorWithAuth.tsx | 7 |
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 /> } |