Skip to content

Commit

Permalink
Hotfix: Changed redirect from /dashboard to /calendar on login
Browse files Browse the repository at this point in the history
  • Loading branch information
kronaemmanuel committed Mar 7, 2021
1 parent 766b887 commit 1e31c02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ function Login(props) {
currentUser.uid
);
if (userExists) {
router.push("/dashboard");
router.push("/calendar");
} else {
try {
await props.firebase.setupUserInCollection(currentUser);
router.push("/dashboard");
router.push("/calendar");
} catch (err) {
console.error("Error while setting up user in database");
setStatus(err.message);
Expand Down

0 comments on commit 1e31c02

Please sign in to comment.