Skip to content

Commit

Permalink
login errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sinamics committed Apr 6, 2023
1 parent 202349e commit f39e7e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/modules/loginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ const LoginForm: React.FC = () => {
})
.then(async (result) => {
if (!result.error) {
await router.push("/dashboard");
return await router.push("/dashboard");
}

setLoginError(result.error);
})
.catch((error: NextAuthError) => {
// Handle any errors that might occur during the signIn process
setLoginError(error.message);
// console.error(error);
});
};
return (
Expand Down

0 comments on commit f39e7e6

Please sign in to comment.