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

This commit is contained in:
greatmaxy
2023-07-11 16:44:10 -04:00
committed by GitHub
parent 325c6ddc86
commit db27c7e4bc
+1 -1
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