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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user