diff --git a/src/components/credentials-sign-in-form.tsx b/src/components/credentials-sign-in-form.tsx index a597891..07ecf4f 100644 --- a/src/components/credentials-sign-in-form.tsx +++ b/src/components/credentials-sign-in-form.tsx @@ -40,14 +40,14 @@ export function CredentialsSignInForm() { const onSubmit = (data: CredentialsSignInFormValues) => { startTransition(async () => { const result = await signInWithCredentials(data); - + if (result?.error) { toast.error("Sign In Failed", { description: result.error, }); } else { toast.success("Signed In Successfully"); - router.push("/dashboard"); + router.push("/"); } }); };