From db27c7e4bcc615c157466f352b3d67ae5c3903e1 Mon Sep 17 00:00:00 2001 From: greatmaxy <81714055+greatmaxy@users.noreply.github.com> Date: Wed, 12 Jul 2023 02:14:10 +0530 Subject: [PATCH] fix: Empty spaces in text field do not trigger inline field error (#10038) --- packages/prisma/zod-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/prisma/zod-utils.ts b/packages/prisma/zod-utils.ts index e8cef4e3c5..71620456f3 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 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