diff --git a/apps/web/src/components/forms/signin.tsx b/apps/web/src/components/forms/signin.tsx index e88495730..5e44146ea 100644 --- a/apps/web/src/components/forms/signin.tsx +++ b/apps/web/src/components/forms/signin.tsx @@ -55,10 +55,10 @@ export const SignInForm = ({ className }: SignInFormProps) => { const errorCode = searchParams?.get('error'); useEffect(() => { - const timeout: NodeJS.Timeout | null = null; + let timeout: NodeJS.Timeout | null = null; if (isErrorCode(errorCode)) { - setTimeout(() => { + timeout = setTimeout(() => { toast({ variant: 'destructive', description: ErrorMessages[errorCode] ?? 'An unknown error occurred',