fix: Empty spaces in text field do not trigger inline field error (#10038)
parent
325c6ddc86
commit
db27c7e4bc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue