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
This commit is contained in:
Arvid Norlin
2025-04-03 12:52:46 +00:00
parent 07ab3fc29e
commit 350748cbbb

View File

@@ -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 && (
<>
<Divider color="subtle" />
<div>