Überarbeitung

This commit is contained in:
2024-08-09 17:59:49 +02:00
parent 6d1c50d5df
commit 1e1d5cea57
27 changed files with 135 additions and 112 deletions

View File

@@ -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.',
}),