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