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',