Skip to content

Commit

Permalink
Remove w param from navigate when navigating to chats from bottom tab
Browse files Browse the repository at this point in the history
  • Loading branch information
WojtekBoman committed Oct 8, 2024
1 parent 6860510 commit 5f6fe49
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import BottomTabBarFloatingActionButton from '@pages/home/sidebar/BottomTabBarFl
import variables from '@styles/variables';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import type {Route} from '@src/ROUTES';
import ROUTES from '@src/ROUTES';
import SCREENS from '@src/SCREENS';

Expand Down Expand Up @@ -76,9 +75,9 @@ function BottomTabBar({selectedTab}: BottomTabBarProps) {
if (selectedTab === SCREENS.HOME) {
return;
}
const route = activeWorkspaceID ? (`/w/${activeWorkspaceID}/${ROUTES.HOME}` as Route) : ROUTES.HOME;
Navigation.navigate(route);
}, [activeWorkspaceID, selectedTab]);

Navigation.navigate(ROUTES.HOME);
}, [selectedTab]);

const navigateToSearch = useCallback(() => {
if (selectedTab === SCREENS.SEARCH.BOTTOM_TAB) {
Expand Down

0 comments on commit 5f6fe49

Please sign in to comment.