Skip to content

Commit

Permalink
Fix weird tab navigator behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham1206agra committed Jan 5, 2025
1 parent 868c4d2 commit 35c0bd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/Navigation/OnyxTabNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 35c0bd7

Please sign in to comment.