Merged in fix/ancillary-payed-with-points-name (pull request #1716)

fix: added ancillary with points show correct name

* fix: added ancillary with points show correct name


Approved-by: Niclas Edenvin
This commit is contained in:
Bianca Widstam
2025-04-03 08:11:06 +00:00
parent 6d869ceba7
commit 3942ab1ff4

View File

@@ -60,7 +60,10 @@ export function AddedAncillaries({
const ancillaryTitle =
ancillary.code === BreakfastPackageEnum.ANCILLARY_REGULAR_BREAKFAST
? intl.formatMessage({ id: "Breakfast" })
: (ancillaries?.find((a) => a.id === ancillary.code)?.title ?? "")
: (ancillaries?.find(
(a) =>
a.id === ancillary.code || a.loyaltyCode === ancillary.code
)?.title ?? "")
return (
<>