From e5a7d6bc8ef87e26ddaac177985d947cecedc9f5 Mon Sep 17 00:00:00 2001 From: bardsley Date: Tue, 8 Oct 2024 15:58:53 +0100 Subject: [PATCH] Trim email and ticket number in case (#191) --- app/api/preferences/route.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/preferences/route.ts b/app/api/preferences/route.ts index 83ffcd32..3e0c9804 100644 --- a/app/api/preferences/route.ts +++ b/app/api/preferences/route.ts @@ -12,8 +12,8 @@ export async function POST(request: Request) { console.log("courseInfo", courseInfo) console.log("Diet",dietChoices) const apiRequestBody = { - ticket_number: ticket.value, - email: email.value, + ticket_number: ticket.value.trim(), + email: email.value.trim(), preferences: { choices: courseInfo, dietary_requirements: {