diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-03 21:36:47 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-03 21:36:47 -0700 |
commit | ef4729c64a0bd9124a20da0a223642a5ec4beff7 (patch) | |
tree | 6461c9859b2c32c9511366d0e30041136e43d158 /modern/src/components | |
parent | 26ba6836d09627e769c6be44fa7c77b65feb4274 (diff) | |
download | trackermap-web-ef4729c64a0bd9124a20da0a223642a5ec4beff7.tar.gz trackermap-web-ef4729c64a0bd9124a20da0a223642a5ec4beff7.tar.bz2 trackermap-web-ef4729c64a0bd9124a20da0a223642a5ec4beff7.zip |
Fix lint issues
Diffstat (limited to 'modern/src/components')
-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; } }; |