fix: make zip code and phone nr optional

This commit is contained in:
Chuma McPhoy
2024-06-24 16:53:25 +02:00
parent bc30e632ea
commit 352ca6b755
2 changed files with 10 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ export const getUserSchema = z.object({
country: z.string().optional(),
countryCode: z.nativeEnum(countriesMap).optional(),
streetAddress: z.string().optional(),
zipCode: z.string(),
zipCode: z.string().optional(),
}),
dateOfBirth: z.string().optional().default("N/A"),
email: z.string().email(),
@@ -27,7 +27,7 @@ export const getUserSchema = z.object({
membershipType: z.string(),
})
),
phoneNumber: z.string(),
phoneNumber: z.string().optional(),
profileId: z.string(),
})