fix: add optional on user country
This commit is contained in:
@@ -5,7 +5,7 @@ import { countriesMap } from "@/components/TempDesignSystem/Form/Country/countri
|
|||||||
export const getUserSchema = z.object({
|
export const getUserSchema = z.object({
|
||||||
address: z.object({
|
address: z.object({
|
||||||
city: z.string().optional(),
|
city: z.string().optional(),
|
||||||
country: z.nativeEnum(countriesMap),
|
country: z.nativeEnum(countriesMap).optional(),
|
||||||
streetAddress: z.string().optional(),
|
streetAddress: z.string().optional(),
|
||||||
zipCode: z.string(),
|
zipCode: z.string(),
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user