Skip to content

Commit

Permalink
fix: Empty spaces in text field do not trigger inline field error (ca…
Browse files Browse the repository at this point in the history
  • Loading branch information
greatmaxy committed Jul 11, 2023
1 parent 325c6dd commit db27c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/prisma/zod-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db27c7e

Please sign in to comment.