From 0146dd11188dd11eaa86187972a268b407540470 Mon Sep 17 00:00:00 2001 From: Bianca Widstam Date: Wed, 14 May 2025 06:49:33 +0000 Subject: [PATCH] Merged in fix/SW-2738-show-quantity-ancillaries--mobile (pull request #2084) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix(SW-2738): add quantity to title for mobile and desktop * fix(SW-2738): add quantity to title for mobile and desktop Approved-by: Niclas Edenvin Approved-by: Joakim Jäderberg Approved-by: Matilda Landström --- .../MyStay/Ancillaries/AddedAncillaries/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 4063ec6b7..fe7079e83 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddedAncillaries/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/Ancillaries/AddedAncillaries/index.tsx @@ -61,7 +61,7 @@ export function AddedAncillaries({ {addedAncillaries.map((ancillary) => { - const ancillaryTitle = + const ancillaryTitle = `${ ancillary.code === BreakfastPackageEnum.ANCILLARY_REGULAR_BREAKFAST ? intl.formatMessage({ defaultMessage: "Breakfast", @@ -70,6 +70,7 @@ export function AddedAncillaries({ (a) => a.id === ancillary.code || a.loyaltyCode === ancillary.code )?.title ?? "") + } X${ancillary.totalUnit}` return ( <> @@ -151,8 +152,6 @@ export function AddedAncillaries({ color="Icon/Feedback/Success" /> {ancillaryTitle} - {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx */} - {`X${ancillary.totalUnit}`}