Skip to content

Commit

Permalink
fix: Update minimum length validation for USN in studentFormSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyshnav001 committed Nov 25, 2024
1 parent 2dd1862 commit 8dfbd17
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 @@ -48,7 +48,7 @@ export const studentFormSchema = z.object({
phone: z
.string()
.regex(/^\d{10}$/, { message: "Phone number must be 10 digits." }),
usn: z.string().min(1, { message: "USN is required for students." }),
usn: z.string().min(10, { message: "USN is required for students." }),
idCard: z.string().min(1, { message: "ID Card is required for students." }),
photo: z.string().min(1, { message: "Photo is required." }),
});

0 comments on commit 8dfbd17

Please sign in to comment.