Skip to content

Scheduling infrastructure for absolutely everyone.

fix: use trim in zod (#5915)

Udit Takkar83e51e9b9df8
diff --git a/apps/web/components/booking/pages/BookingPage.tsx b/apps/web/components/booking/pages/BookingPage.tsx
index 596e5dc0c48..15c94dae69f 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))