From 83e51e9b9df8ddabb29dd99bc484270f8f8ba5a9 Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Thu, 8 Dec 2022 01:42:53 +0530 Subject: [PATCH] fix: use trim in zod (#5915) Signed-off-by: Udit Takkar Signed-off-by: Udit Takkar --- apps/web/components/booking/pages/BookingPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/components/booking/pages/BookingPage.tsx b/apps/web/components/booking/pages/BookingPage.tsx index 596e5dc0c4..15c94dae69 100644 --- a/apps/web/components/booking/pages/BookingPage.tsx +++ b/apps/web/components/booking/pages/BookingPage.tsx @@ -240,7 +240,7 @@ const BookingPage = ({ const bookingFormSchema = z .object({ name: z.string().min(1), - email: z.string().email(), + email: z.string().trim().email(), phone: z .string() .refine((val) => isValidPhoneNumber(val))