mirror of
https://github.com/System-End/site.git
synced 2026-04-20 00:25:19 +00:00
works
This commit is contained in:
parent
1aab3c8a4f
commit
960f9e6728
1 changed files with 2 additions and 5 deletions
|
|
@ -49,10 +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.educationLevel === 'tertiary'
|
||||
|
||||
console.log(isAdult, "am adult")
|
||||
|
||||
const isAdult = data.year === 'tertiary'
|
||||
|
||||
if (isAdult) {
|
||||
const mail = {
|
||||
|
|
@ -117,4 +114,4 @@ export default async function handler(req, res) {
|
|||
console.error(error)
|
||||
res.status(500).json({ error })
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue