Merged in fix/STAY-73-opt-in-email (pull request #3028)

Fix/STAY-73 opt in email

* fix: let user opt-in for modification email when adding ancillaries

* fix: add toast when successfully removing an ancillary


Approved-by: Erik Tiekstra
Approved-by: Elin Svedin
This commit is contained in:
Christel Westerberg
2025-10-29 12:45:18 +00:00
parent 333636c81a
commit 377c8886ad
8 changed files with 53 additions and 4 deletions

View File

@@ -14,6 +14,7 @@ export const addPackageInput = z.object({
comment: z.string().optional(),
})
),
emailOptOut: z.boolean(),
language: z.nativeEnum(Lang).transform((val) => langToApiLang[val]),
})

View File

@@ -145,7 +145,7 @@ export const bookingMutationRouter = router({
headers,
body: body,
},
{ language }
{ language, emailOptOut: input.emailOptOut }
)
if (!apiResponse.ok) {