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

pull/10071/head^2
greatmaxy 2023-07-12 02:14:10 +05:30 committed by GitHub
parent 325c6ddc86
commit db27c7e4bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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