From 35c0bd7e40d8ddebd99366bde6234def1d49cc3f Mon Sep 17 00:00:00 2001 From: Shubham Agrawal Date: Sun, 5 Jan 2025 23:26:22 +0530 Subject: [PATCH] Fix weird tab navigator behavior --- src/libs/Navigation/OnyxTabNavigator.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/Navigation/OnyxTabNavigator.tsx b/src/libs/Navigation/OnyxTabNavigator.tsx index a8e72c2c82ea..f2b93039d099 100644 --- a/src/libs/Navigation/OnyxTabNavigator.tsx +++ b/src/libs/Navigation/OnyxTabNavigator.tsx @@ -129,7 +129,7 @@ function OnyxTabNavigator({ const index = state.index; const routeNames = state.routeNames; const newSelectedTab = routeNames.at(index); - if (selectedTab === newSelectedTab || (selectedTab && !routeNames.includes(selectedTab))) { + if (selectedTab === newSelectedTab) { return; } Tab.setSelectedTab(id, newSelectedTab as SelectedTabRequest);