diff --git a/app/(auth)/sign-in/_components/signin-form.tsx b/app/(auth)/sign-in/_components/signin-form.tsx index 0380d6e..8bff004 100644 --- a/app/(auth)/sign-in/_components/signin-form.tsx +++ b/app/(auth)/sign-in/_components/signin-form.tsx @@ -60,6 +60,8 @@ const SignInForm = () => { toast.error( "An unexpected error occurred. Please try again later.", ); + } finally { + setAuthLoading((prev) => ({ ...prev, credential: false })); } }; @@ -77,6 +79,8 @@ const SignInForm = () => { toast.error( "An unexpected error occurred. Please try again later.", ); + } finally { + setAuthLoading((prev) => ({ ...prev, credential: false })); } }; diff --git a/app/(auth)/sign-up/_components/signup-form.tsx b/app/(auth)/sign-up/_components/signup-form.tsx index 2b7b721..ba92d3b 100644 --- a/app/(auth)/sign-up/_components/signup-form.tsx +++ b/app/(auth)/sign-up/_components/signup-form.tsx @@ -63,6 +63,8 @@ const SignUpForm = () => { toast.error( "An unexpected error occurred. Please try again later.", ); + } finally { + setAuthLoading((prev) => ({ ...prev, credential: false })); } }; @@ -80,6 +82,8 @@ const SignUpForm = () => { toast.error( "An unexpected error occurred. Please try again later.", ); + } finally { + setAuthLoading((prev) => ({ ...prev, credential: false })); } };