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 => {
toast.closeAll();
try {
if (err.response.status === 401) {
dispatch(authLogout());
history.push("/login");
}else{
toast.closeAll();
toast({
title: 'Server Error Occurred',
status: 'error',

Loading…
Cancel
Save