Update join.js

This commit is contained in:
Toby Brown 2024-03-18 16:01:46 +00:00 committed by GitHub
parent e6c4f6c0cc
commit 10aa630a1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,7 +49,7 @@ export default async function handler(req, res) {
let data = req.body || {}
const open = process.env.NEXT_PUBLIC_OPEN === 'true'
const waitlist = !open
const isAdult = data.year ? new Date().getFullYear() - data.year >= 18 : false
const isAdult = data.year ? new Date().getFullYear() - data.year >= 19 : false
if (isAdult) {
const mail = {