From efde8055c86cac722c997980cf4f6c6bdf7f33d3 Mon Sep 17 00:00:00 2001 From: war-in Date: Thu, 31 Oct 2024 15:57:25 +0100 Subject: [PATCH] fix --- src/libs/actions/Session/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/actions/Session/index.ts b/src/libs/actions/Session/index.ts index 38ec1b736fd0..b34f50b50e96 100644 --- a/src/libs/actions/Session/index.ts +++ b/src/libs/actions/Session/index.ts @@ -513,12 +513,12 @@ function signInAfterTransitionFromOldDot(transitionURL: string) { return new Promise((resolve) => { clearOnyxBeforeSignIn() .then(() => { - const dismissed = useNewDotSignInPage === 'true' ? 'false' : 'false'; + const dismissed = useNewDotSignInPage === 'true' ? 'true' : 'false'; Onyx.multiSet({ [ONYXKEYS.USE_NEWDOT_SIGN_IN_PAGE]: useNewDotSignInPage === 'true', [ONYXKEYS.NVP_TRYNEWDOT]: {classicRedirect: {dismissed}}, // This data is mocked and should be returned by BeginSignUp/SignInUser API commands [ONYXKEYS.HYBRID_APP]: { - readyToSwitchToClassicExperience: false, + readyToSwitchToClassicExperience: useNewDotSignInPage !== 'true', readyToShowAuthScreens: useNewDotSignInPage !== 'true', isSigningIn: false, },