From 03b1d761f07fd47fefba610e88ce1462d1ac82b8 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 19 Mar 2024 10:16:22 -0400 Subject: [PATCH] fix: use ChangePasswordSchema --- app/routes/account.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/account.tsx b/app/routes/account.tsx index 1f82f46..5d4782a 100644 --- a/app/routes/account.tsx +++ b/app/routes/account.tsx @@ -295,7 +295,7 @@ const ChangePasswordForm = ({ const { mutate: updatePassword } = useUpdatePassword<{ password: string }>(); const [form, fields] = useForm({ id: "login", - constraint: getZodConstraint(ChangeEmailSchema), + constraint: getZodConstraint(ChangePasswordSchema), onValidate({ formData }) { return parseWithZod(formData, { schema: ChangePasswordSchema }); },