From ef4729c64a0bd9124a20da0a223642a5ec4beff7 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 3 Sep 2021 21:36:47 -0700 Subject: Fix lint issues --- modern/src/components/BottomMenu.js | 10 +++++----- 1 file 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; } }; -- cgit v1.2.3