diff options
-rw-r--r-- | modern/src/components/BottomMenu.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modern/src/components/BottomMenu.js b/modern/src/components/BottomMenu.js index 610944fc..e994f8f6 100644 --- a/modern/src/components/BottomMenu.js +++ b/modern/src/components/BottomMenu.js @@ -44,11 +44,11 @@ const BottomMenu = () => { history.push('/settings/notifications'); break; case 3: - const response = await fetch('/api/session', { method: 'DELETE' }); - if (response.ok) { - dispatch(sessionActions.updateUser(null)); - history.push('/login'); - } + await fetch('/api/session', { method: 'DELETE' }); + dispatch(sessionActions.updateUser(null)); + history.push('/login'); + break; + default: break; } }; |