aboutsummaryrefslogtreecommitdiff
path: root/modern/src/components/BottomMenu.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-03 21:36:47 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-03 21:36:47 -0700
commitef4729c64a0bd9124a20da0a223642a5ec4beff7 (patch)
tree6461c9859b2c32c9511366d0e30041136e43d158 /modern/src/components/BottomMenu.js
parent26ba6836d09627e769c6be44fa7c77b65feb4274 (diff)
downloadtrackermap-web-ef4729c64a0bd9124a20da0a223642a5ec4beff7.tar.gz
trackermap-web-ef4729c64a0bd9124a20da0a223642a5ec4beff7.tar.bz2
trackermap-web-ef4729c64a0bd9124a20da0a223642a5ec4beff7.zip
Fix lint issues
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 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;
}
};