From a551b97cd719462a17379f4117e83e39f8070783 Mon Sep 17 00:00:00 2001 From: Nareshkumar Rao <_accounts@nareshkumarrao.com> Date: Fri, 13 Aug 2021 00:02:37 +0200 Subject: [PATCH] ui fix: close 'checking lockout' toast when unauthorized --- src/screens/LockoutScreen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/LockoutScreen.js b/src/screens/LockoutScreen.js index 02ce749..36fd5c5 100644 --- a/src/screens/LockoutScreen.js +++ b/src/screens/LockoutScreen.js @@ -29,12 +29,12 @@ function Lockout() { } }) .catch(err => { + toast.closeAll(); try { if (err.response.status === 401) { dispatch(authLogout()); history.push("/login"); }else{ - toast.closeAll(); toast({ title: 'Server Error Occurred', status: 'error',