Skip to content

Commit

Permalink
Trim email and ticket number in case (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
bardsley authored Oct 8, 2024
1 parent 350fa61 commit e5a7d6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/preferences/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit e5a7d6b

Please sign in to comment.