application-spacing-fix #110

Merged
Ajdj100 merged 4 commits from application-spacing-fix into main 2025-12-16 10:08:18 -06:00
Showing only changes of commit e949e32189 - Show all commits

View File

@@ -33,7 +33,7 @@ const regexB = /^https?:\/\/steamcommunity\.com\/profiles\/\d+\/?$/;
const formSchema = toTypedSchema(z.object({ const formSchema = toTypedSchema(z.object({
dob: z.string().refine(v => v, { message: "A date of birth is required." }), dob: z.string().refine(v => v, { message: "A date of birth is required." }),
name: z.string().nonempty(), name: z.string().nonempty(),
playtime: z.coerce.number({ invalid_type_error: "Must be a number", }).min(0, "Cannot be less than 0"), playtime: z.preprocess((v) => (v === "" ? undefined : String(v)),z.string({ required_error: "Required" }).regex(/^\d+(\.\d+)?$/, "Must be a number").transform(Number).refine((n) => n >= 0, "Cannot be less than 0")),
hobbies: z.string().nonempty(), hobbies: z.string().nonempty(),
military: z.boolean(), military: z.boolean(),
communities: z.string().nonempty(), communities: z.string().nonempty(),