From ed536713f9e9b81b6e01a31bc850248c56254d43 Mon Sep 17 00:00:00 2001 From: Francois Laithier Date: Wed, 13 Nov 2024 14:28:59 -0800 Subject: [PATCH] Merge pull request #52504 from Expensify/revert-51547-fix/50981 Revert "fix: prevent open search when onboarding is not completed" (cherry picked from commit af242f70b3af496cf42bdf2249c09594c7261baf) (CP triggered by francoisl) --- src/libs/Navigation/AppNavigator/AuthScreens.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/libs/Navigation/AppNavigator/AuthScreens.tsx b/src/libs/Navigation/AppNavigator/AuthScreens.tsx index a061d5b52d22..7c39f36b932d 100644 --- a/src/libs/Navigation/AppNavigator/AuthScreens.tsx +++ b/src/libs/Navigation/AppNavigator/AuthScreens.tsx @@ -261,12 +261,6 @@ function AuthScreens({session, lastOpenedPublicRoomID, initialLastUpdateIDApplie isInitialRender.current = false; } - const isOnboardingCompletedRef = useRef(isOnboardingCompleted); - - useEffect(() => { - isOnboardingCompletedRef.current = isOnboardingCompleted; - }, [isOnboardingCompleted]); - useEffect(() => { const shortcutsOverviewShortcutConfig = CONST.KEYBOARD_SHORTCUTS.SHORTCUTS; const searchShortcutConfig = CONST.KEYBOARD_SHORTCUTS.SEARCH; @@ -363,9 +357,6 @@ function AuthScreens({session, lastOpenedPublicRoomID, initialLastUpdateIDApplie searchShortcutConfig.shortcutKey, () => { Session.checkIfActionIsAllowed(() => { - if (!isOnboardingCompletedRef.current) { - return; - } toggleSearchRouter(); })(); },