fix: Empty spaces in text field do not trigger inline field error (#10038)
This commit is contained in:
1 parent
325c6ddc86
commit
db27c7e4bc
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user