diff --git a/src/actions/signup.ts b/src/actions/signup.ts index a797422..8025c35 100644 --- a/src/actions/signup.ts +++ b/src/actions/signup.ts @@ -9,10 +9,10 @@ export const signup = { input: z.object({ firstname: z.string().trim().min(2), lastname: z.string().trim().min(2), - // this will be inaccurate as it is evaluated only once birthday: z .string() .date() + // this will be inaccurate as it is evaluated only once .max(Date.now() - 1000 * 60 * 60 * 24 * 365 * 6), phone: z.string().trim().nullable(), username: z.string().trim(),