fixing things with profilke page

This commit is contained in:
Arjun Patel
2022-02-09 20:11:20 -08:00
parent afb2f3974f
commit 5f2fa566ae
3 changed files with 43 additions and 63 deletions
+2 -1
View File
@@ -30,6 +30,7 @@ export default function Login() {
// setCurrUser(new UserData(user));
console.log(user);
window.open("/s", "_self");
})
.catch((error) => {
// Handle Errors here.
@@ -48,7 +49,7 @@ export default function Login() {
// if auth, go to dashboard
if (currUser) {
console.log("already logged in, redirecting to router");
router.push("/s");
window.open("/s", "_self");
}
}, [currUser]);