about summary refs log tree commit diff
path: root/src/view/shell/index.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-03-16 11:41:59 -0500
committerPaul Frazee <pfrazee@gmail.com>2023-03-16 11:41:59 -0500
commit93df983692ab9f1e0cdcce9a87396745aa992dda (patch)
treef44eceef849cef4e6277e25f5e6c9124c8000b8b /src/view/shell/index.tsx
parent64c8689a290927e9d1028366c5d6ac03a3b4197a (diff)
downloadvoidsky-93df983692ab9f1e0cdcce9a87396745aa992dda.tar.zst
Disable the drawer and reset the nav when the user logs out or switches accounts
Diffstat (limited to 'src/view/shell/index.tsx')
-rw-r--r--src/view/shell/index.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx
index 15f9ef58c..d7877804b 100644
--- a/src/view/shell/index.tsx
+++ b/src/view/shell/index.tsx
@@ -46,7 +46,7 @@ const ShellInner = observer(() => {
             onOpen={onOpenDrawer}
             onClose={onCloseDrawer}
             swipeEdgeWidth={winDim.width}
-            swipeEnabled={!canGoBack}>
+            swipeEnabled={!canGoBack && store.session.hasSession}>
             <TabsNavigator />
           </Drawer>
         </ErrorBoundary>