From dece05bb086536e8d0c0b9bcf7ecbcbb98d2419a Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Wed, 5 Mar 2025 12:38:46 +0100 Subject: [PATCH] Update required age --- app/sign-up-form.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/sign-up-form.tsx b/app/sign-up-form.tsx index caf9f96..6840111 100644 --- a/app/sign-up-form.tsx +++ b/app/sign-up-form.tsx @@ -22,14 +22,13 @@ import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover import { cn } from "@/lib/utils"; import { signupFormSubmit } from "@/lib/actions"; import { useState } from "react"; -import { before } from "node:test"; export const signupFormSchema = z.object({ name: z.string().min(2, { message: "Name is required" }).max(50, { message: "Name is too long" }), email: z.string().email({ message: "Email is invalid" }), dob: z.date({ required_error: "Birthday is required" }), }); -export const youngestDate = new Date(new Date().setFullYear(new Date().getFullYear() - 21)); +export const youngestDate = new Date(new Date().setFullYear(new Date().getFullYear() - 20)); export const oldestDate = new Date(new Date().setFullYear(new Date().getFullYear() - 100)); export default function SignUp() { @@ -118,7 +117,7 @@ export default function SignUp() { /> - You must be over 21 to sign up. + You must be over 20 to sign up. )}