Skip to content

Commit

Permalink
easy
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Nov 22, 2024
1 parent ed2b70a commit 29b05ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function LoginPage(props: LoginPageProps) {
username,
password,
})
.then((user) => (user ? router.push("/dashboard") : setStatus(user)))
.then(() => router.push("/dashboard"))
.catch((error) => setStatus(JSON.stringify(error)));
};

Expand Down
2 changes: 1 addition & 1 deletion src/app/(auth)/register/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function RegisterPage() {
username,
password,
})
.then((user) => (user ? router.push("/dashboard") : setStatus(user)))
.then(() => router.push("/dashboard"))
.catch((error) => setStatus(JSON.stringify(error)));
};

Expand Down

0 comments on commit 29b05ec

Please sign in to comment.