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(); })(); },