Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Empty spaces in text field do not trigger inline field error (#10038)

greatmaxydb27c7e4bcc6
diff --git a/packages/prisma/zod-utils.ts b/packages/prisma/zod-utils.ts
index e8cef4e3c59..71620456f32 100644
--- a/packages/prisma/zod-utils.ts
+++ b/packages/prisma/zod-utils.ts
@@ -113,7 +113,7 @@ export type BookingFieldType = typeof BookingFieldType extends z.Values<infer T>
export const bookingResponses = z
.object({
email: z.string(),
- name: z.string(),
+ name: z.string().refine((value: string) => value.trim().length > 0),
guests: z.array(z.string()).optional(),
notes: z.string().optional(),
location: z