aboutsummaryrefslogtreecommitdiff
path: root/modern/src/components/BottomMenu.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/components/BottomMenu.js')
-rw-r--r--modern/src/components/BottomMenu.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/modern/src/components/BottomMenu.js b/modern/src/components/BottomMenu.js
index 610944f..e994f8f 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;
}
};