diff --git a/components/Forms/Edit/Profile/schema.ts b/components/Forms/Edit/Profile/schema.ts index 681a67240..e785b4716 100644 --- a/components/Forms/Edit/Profile/schema.ts +++ b/components/Forms/Edit/Profile/schema.ts @@ -26,7 +26,7 @@ export const editProfileSchema = z ), password: z.string().optional(), - newPassword: z.literal("").or(passwordValidator()), + newPassword: z.literal("").optional().or(passwordValidator()), retypeNewPassword: z.string().optional(), }) .superRefine((data, ctx) => {