Merged in fix/sw-2091-remove-breakfast (pull request #1689)

fix(SW-2091): remove breakfast ancillaries

* fix(SW-2091): remove breakfast ancillaries

* Send array in correct format

* Break out function


Approved-by: Bianca Widstam
This commit is contained in:
Niclas Edenvin
2025-04-01 14:34:51 +00:00
parent 35f9c3aab5
commit d9c2ac12a1
3 changed files with 61 additions and 43 deletions

View File

@@ -11,12 +11,12 @@ import useLang from "@/hooks/useLang"
export default function RemoveButton({
confirmationNumber,
code,
codes,
title,
onSuccess,
}: {
confirmationNumber: string
code: string
codes: string[]
title?: string
onSuccess: () => void
}) {
@@ -44,7 +44,7 @@ export default function RemoveButton({
{
language: lang,
confirmationNumber,
codes: [code],
codes,
},
{
onSuccess: (data) => {