fix for infinity loading

This commit is contained in:
anovazzi1 2023-09-28 20:28:37 -03:00 committed by anovazzi1
commit fcaa0ca833
3 changed files with 3 additions and 2 deletions

View file

@ -68,6 +68,7 @@ export function AuthProvider({ children }): React.ReactElement {
})
.catch((error) => {
console.log("auth context");
setLoading(false);
});
} else {
setLoading(false);

View file

@ -55,7 +55,7 @@ export default function LoginAdminPage() {
setUserData(user);
})
.catch((error) => {
console.log("login admin page");
console.log("login admin page", error);
});
}, 1000);
}

View file

@ -59,7 +59,7 @@ export default function LoginPage(): JSX.Element {
setUserData(user);
})
.catch((error) => {
console.log("login page");
console.log("login page", error);
});
}, 500);
}