Skip to content

Commit de66235

Browse files
committed
revert dialog fix
1 parent 990aea6 commit de66235

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Expensify.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ function Expensify() {
130130

131131
// This effect is closing OldDot sign out modal based on splash screen state
132132
useEffect(() => {
133-
if (!isSplashReadyToBeHidden || !isNavigationReady || !hasAttemptedToOpenPublicRoom || !hybridApp?.loggedOutFromOldDot) {
133+
if (!isSplashReadyToBeHidden || !shouldInit || !hybridApp?.loggedOutFromOldDot) {
134134
return;
135135
}
136136

137137
setSplashScreenState(CONST.BOOT_SPLASH_STATE.HIDDEN);
138138
HybridAppModule.clearOldDotAfterSignOut();
139-
}, [hasAttemptedToOpenPublicRoom, hybridApp?.loggedOutFromOldDot, isNavigationReady, isSplashReadyToBeHidden, setSplashScreenState]);
139+
}, [hybridApp?.loggedOutFromOldDot, isSplashReadyToBeHidden, setSplashScreenState, shouldInit, splashScreenState]);
140140

141141
const initializeClient = () => {
142142
if (!Visibility.isVisible()) {

0 commit comments

Comments
 (0)