registration

This commit is contained in:
Mikola
2023-11-08 18:27:42 +03:00
parent d342482c4d
commit b9cea4e7f7
8 changed files with 253 additions and 22 deletions

View File

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