From 8ba616a444fbb71b4bd51bc86c3f29d0ea9d6847 Mon Sep 17 00:00:00 2001 From: "Mr. Algorithm" <11aravipratapsingh@gmail.com> Date: Sat, 4 Oct 2025 01:04:05 +0530 Subject: [PATCH] Update app/(auth)/sign-in/page.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- app/(auth)/sign-in/page.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/(auth)/sign-in/page.tsx b/app/(auth)/sign-in/page.tsx index 26912cc..932184e 100644 --- a/app/(auth)/sign-in/page.tsx +++ b/app/(auth)/sign-in/page.tsx @@ -28,7 +28,13 @@ const SignIn = () => { const onSubmit = async (data: SignInFormData) => { try { const result = await signInWithEmail(data); - if(result.success) router.push('/'); + if (result.success) { + router.push('/'); + return; + } + toast.error('Sign in failed', { + description: result.error ?? 'Invalid email or password.', + }); } catch (e) { console.error(e); toast.error('Sign in failed', {