Skip to content

Commit

Permalink
Allow empty string placeholder for email
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy-Gonzalez committed Jan 12, 2025
1 parent 5f290cb commit 3780bf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/registration/registration-schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ export const RegistrationApplicationRequestSchema = z
isProApplicant: z.boolean(),
preferredName: z.string(),
legalName: z.string(),
emailAddress: z.string().email({ message: "Invalid email syntax." }),
// Email address needs to allow empty string as placeholder value. Ideally we change this in the future, but this is a temp fix.
emailAddress: z.union([z.string().email({ message: "Invalid email syntax." }), z.literal("")]),
gender: GenderSchema,
race: z.array(RaceSchema),
resumeFileName: z.string().optional(),
Expand Down

0 comments on commit 3780bf1

Please sign in to comment.