diff --git a/src/libs/Navigation/getTopmostBottomTabRoute.ts b/src/libs/Navigation/getTopmostBottomTabRoute.ts index ff27d0e30ba6..e156b567af0d 100644 --- a/src/libs/Navigation/getTopmostBottomTabRoute.ts +++ b/src/libs/Navigation/getTopmostBottomTabRoute.ts @@ -1,7 +1,7 @@ import type {BottomTabName, NavigationPartialRoute, RootStackParamList, State} from './types'; function getTopmostBottomTabRoute(state: State | undefined): NavigationPartialRoute | undefined { - const bottomTabNavigatorRoute = state?.routes.findLast(route => route.name === 'BottomTabNavigator');; + const bottomTabNavigatorRoute = state?.routes.findLast((route) => route.name === 'BottomTabNavigator'); // The bottomTabNavigatorRoute state may be empty if we just logged in. if (!bottomTabNavigatorRoute || bottomTabNavigatorRoute.name !== 'BottomTabNavigator' || bottomTabNavigatorRoute.state === undefined) {