registration

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

No files matched your search

+1 -1
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));