Überarbeitung
This commit is contained in:
@@ -111,7 +111,7 @@ export const LicensedInSchema = z.object({
|
||||
state: z.string().nonempty('State is required'),
|
||||
});
|
||||
export const GeoSchema = z.object({
|
||||
city: z.string(),
|
||||
name: z.string(),
|
||||
state: z.string().refine(val => USStates.safeParse(val).success, {
|
||||
message: 'Invalid state. Must be a valid 2-letter US state code.',
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user