From 350748cbbbc4ae52ca0104f9a87e1ba879e7ae99 Mon Sep 17 00:00:00 2001 From: Arvid Norlin Date: Thu, 3 Apr 2025 12:52:46 +0000 Subject: [PATCH] Merged in fix/hide-breakfastprice-for-breakfastincluded (pull request #1727) fix: Hide the breakfast package unitprice for bookings with breakfastIncluded * fix: Hide the breakfast package unitprice for bookings with breakfastIncluded Approved-by: Niclas Edenvin --- .../HotelReservation/MyStay/Receipt/Specification/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/scandic-web/components/HotelReservation/MyStay/Receipt/Specification/index.tsx b/apps/scandic-web/components/HotelReservation/MyStay/Receipt/Specification/index.tsx index b2c4e7709..dd0ee2613 100644 --- a/apps/scandic-web/components/HotelReservation/MyStay/Receipt/Specification/index.tsx +++ b/apps/scandic-web/components/HotelReservation/MyStay/Receipt/Specification/index.tsx @@ -31,6 +31,9 @@ export default async function Specification({ 0 ) + const displayBreakfastPrice = + breakfastCount > 0 && !booking.rateDefinition.breakfastIncluded + const breakfastMoneyString = breakfastTotalPriceInMoney > 0 ? `${breakfastTotalPriceInMoney} ${currency}` @@ -153,7 +156,7 @@ export default async function Specification({ ))} {/****** Breakfast ********/} - {breakfastCount > 0 && ( + {displayBreakfastPrice && ( <>