debug error handling

This commit is contained in:
2023-08-14 14:11:53 +03:30
parent b17bc0136c
commit ca6a5ffd1e
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ export const errorRequest = (t, notification) => {
}
export const errorResponse = (response, clearToken, t, notification) => {
toast.dismiss();
if (notification) toast.dismiss();
if (isServerError(response.status)) {
errorServer(response, t, notification)
} else if (isClientError(response.status)) {