Scheduling infrastructure for absolutely everyone.
fix: make sure the email is in lowercase when updating profile (#23568)
Anik Dhabal Babub7e668217d4a
diff --git a/apps/web/modules/settings/my-account/profile-view.tsx b/apps/web/modules/settings/my-account/profile-view.tsxindex a85c1b1b7cc..b59a64b2cb7 100644--- a/apps/web/modules/settings/my-account/profile-view.tsx+++ b/apps/web/modules/settings/my-account/profile-view.tsx@@ -511,12 +511,12 @@ const ProfileForm = ({.max(FULL_NAME_LENGTH_MAX_LIMIT, {message: t("max_limit_allowed_hint", { limit: FULL_NAME_LENGTH_MAX_LIMIT }),}),- email: emailSchema,+ email: emailSchema.toLowerCase(),bio: z.string(),secondaryEmails: z.array(z.object({id: z.number(),- email: emailSchema,+ email: emailSchema.toLowerCase(),emailVerified: z.union([z.string(), z.null()]).optional(),emailPrimary: z.boolean().optional(),})