From a4e78aafb3fc995042302412e25b739b316df732 Mon Sep 17 00:00:00 2001 From: Vit Horacek <36083550+mountiny@users.noreply.github.com> Date: Wed, 13 Nov 2024 23:12:48 +0100 Subject: [PATCH] Revert "fix: prevent open search when onboarding is not completed" --- 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(); })(); },