Skip to content

Commit

Permalink
Merge pull request #52504 from Expensify/revert-51547-fix/50981
Browse files Browse the repository at this point in the history
Revert "fix: prevent open search when onboarding is not completed"

(cherry picked from commit af242f7)

(CP triggered by francoisl)
  • Loading branch information
francoisl authored and OSBotify committed Nov 13, 2024
1 parent 5d7c448 commit ed53671
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/libs/Navigation/AppNavigator/AuthScreens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -363,9 +357,6 @@ function AuthScreens({session, lastOpenedPublicRoomID, initialLastUpdateIDApplie
searchShortcutConfig.shortcutKey,
() => {
Session.checkIfActionIsAllowed(() => {
if (!isOnboardingCompletedRef.current) {
return;
}
toggleSearchRouter();
})();
},
Expand Down

0 comments on commit ed53671

Please sign in to comment.