Browse Source

ui fix: close 'checking lockout' toast when unauthorized

pull/10/head
Nareshkumar Rao 3 years ago
parent
commit
a551b97cd7
  1. 2
      src/screens/LockoutScreen.js

2
src/screens/LockoutScreen.js

@ -29,12 +29,12 @@ function Lockout() {
} }
}) })
.catch(err => { .catch(err => {
toast.closeAll();
try { try {
if (err.response.status === 401) { if (err.response.status === 401) {
dispatch(authLogout()); dispatch(authLogout());
history.push("/login"); history.push("/login");
}else{ }else{
toast.closeAll();
toast({ toast({
title: 'Server Error Occurred', title: 'Server Error Occurred',
status: 'error', status: 'error',

Loading…
Cancel
Save