fix: use ChangePasswordSchema

This commit is contained in:
Derrick Hammer 2024-03-19 10:16:22 -04:00
parent b65bd12c8a
commit 03b1d761f0
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

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