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 }); },