diff --git a/surfsense_web/app/(home)/login/LocalLoginForm.tsx b/surfsense_web/app/(home)/login/LocalLoginForm.tsx index 5b5147926..ad649848f 100644 --- a/surfsense_web/app/(home)/login/LocalLoginForm.tsx +++ b/surfsense_web/app/(home)/login/LocalLoginForm.tsx @@ -211,9 +211,14 @@ export function LocalLoginForm() { diff --git a/surfsense_web/app/(home)/register/page.tsx b/surfsense_web/app/(home)/register/page.tsx index 60c3ba1be..e73df6169 100644 --- a/surfsense_web/app/(home)/register/page.tsx +++ b/surfsense_web/app/(home)/register/page.tsx @@ -6,7 +6,7 @@ import Link from "next/link"; import { useRouter } from "next/navigation"; import { useTranslations } from "next-intl"; import { useEffect, useState } from "react"; -import { toast } from "sonner"; +import { toast, type ExternalToast } from "sonner"; import { registerMutationAtom } from "@/atoms/auth/auth-mutation.atoms"; import { Logo } from "@/components/Logo"; import { Spinner } from "@/components/ui/spinner"; @@ -131,7 +131,7 @@ export default function RegisterPage() { setError({ title: errorDetails.title, message: errorDetails.description }); // Show error toast with conditional retry action - const toastOptions: any = { + const toastOptions: ExternalToast = { description: errorDetails.description, duration: 6000, }; @@ -289,15 +289,13 @@ export default function RegisterPage() {