fix(ui): hide error if API throws un-authorized (#7244)

This commit is contained in:
Chirag Madlani 2022-09-06 12:49:07 +05:30 committed by GitHub
parent 364067ac84
commit c0b42b6825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -422,7 +422,6 @@ export const AuthProvider = ({
const { status } = error.response;
if (status === ClientErrors.UNAUTHORIZED) {
storeRedirectPath();
showErrorToast(error);
resetUserDetails(true);
}
}