From 3942ab1ff472dbb9d3a02f5bfce8bfea41ade212 Mon Sep 17 00:00:00 2001 From: Bianca Widstam Date: Thu, 3 Apr 2025 08:11:06 +0000 Subject: [PATCH] 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 --- .../MyStay/Ancillaries/AddedAncillaries/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddedAncillaries/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddedAncillaries/index.tsx index cc647b30f..627084c4f 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddedAncillaries/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddedAncillaries/index.tsx @@ -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 ( <>