Skip to content

Commit

Permalink
add min for photo
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyshnav001 committed Dec 5, 2024
1 parent 468d139 commit a56ba4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/zod-schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const baseSchema = z.object({
name: z.string().min(2, { message: "Name must be at least 2 characters." }),
email: z.string().email({ message: "Invalid email address." }),
phone: z.string().regex(/^\d{10}$/, { message: "Phone number must be 10 digits." }),
photo: z.string(),
photo: z.string().min(1, { message: "Photo is required." }).url(),
entityName: z.string().optional(),
couponCode: z.string().optional(),
foodPreference: z.enum(["veg", "non-veg"]),
Expand Down

0 comments on commit a56ba4c

Please sign in to comment.