fix errors

This commit is contained in:
2023-01-20 18:39:54 +03:00
parent 3081c5fd7d
commit 172196f561
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ export const apiRequest = (url, {
})
.then(response => new Promise(resolve => {
if (response.data.redirect || response.status === 401) {
window.location.replace('/');
window.location.replace('/auth');
localStorage.clear();
// dispatch(auth(false));
}