fix: Hide opt-out option for ancillary email

This commit is contained in:
Christel Westerberg
2025-11-03 15:46:54 +01:00
parent b8d887f82d
commit a2e0f7244a
6 changed files with 1 additions and 17 deletions

View File

@@ -14,7 +14,6 @@ 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, emailOptOut: input.emailOptOut }
{ language }
)
if (!apiResponse.ok) {