diff --git a/src/view/shell/bottom-bar/BottomBarWeb.tsx b/src/view/shell/bottom-bar/BottomBarWeb.tsx index 6448eea63f..e20214235f 100644 --- a/src/view/shell/bottom-bar/BottomBarWeb.tsx +++ b/src/view/shell/bottom-bar/BottomBarWeb.tsx @@ -109,7 +109,12 @@ const NavItem: React.FC<{ href: string routeName: string }> = ({children, href, routeName}) => { - const currentRoute = useNavigationState(getCurrentRoute) + const currentRoute = useNavigationState(state => { + if (!state) { + return {name: 'Home'} + } + return getCurrentRoute(state) + }) const store = useStores() const isActive = currentRoute.name === 'Profile'