diff --git a/apps/web/components/signup.tsx b/apps/web/components/signup.tsx index d0e2192b7..8c45d014e 100644 --- a/apps/web/components/signup.tsx +++ b/apps/web/components/signup.tsx @@ -2,6 +2,7 @@ import { XCircleIcon } from "@heroicons/react/24/outline"; import { signIn } from "next-auth/react"; import Link from "next/link"; import { FormProvider, SubmitHandler, useForm } from "react-hook-form"; +import { Toast, Toaster } from "react-hot-toast"; import Logo from "./logo"; @@ -28,7 +29,7 @@ export default function Signup() { }; const signUp: SubmitHandler = async (data) => { - methods.clearErrors(); + // methods.clearErrors(); await fetch("/api/auth/signup", { body: JSON.stringify({ ...data, @@ -152,7 +153,7 @@ export default function Signup() { minLength: { value: 7, message: - "Password has to be at least 7 characters long.", + "Your password has to be at least 7 characters long.", }, })} id="password" @@ -201,6 +202,7 @@ export default function Signup() { + ); }