diff options
Diffstat (limited to 'src/view/shell/mobile/index.tsx')
-rw-r--r-- | src/view/shell/mobile/index.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/view/shell/mobile/index.tsx b/src/view/shell/mobile/index.tsx index 8ea79b92b..e7c695ca9 100644 --- a/src/view/shell/mobile/index.tsx +++ b/src/view/shell/mobile/index.tsx @@ -134,7 +134,12 @@ export const MobileShell: React.FC = observer(() => { if (store.nav.tab.current.url === '/') { scrollElRef.current?.scrollToOffset({offset: 0}) } else { - store.nav.tab.goBackToZero() + if (store.nav.tab.canGoBack) { + // sanity check + store.nav.tab.goBackToZero() + } else { + store.nav.navigate('/') + } } } const onPressMenu = () => setMainMenuActive(true) |