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
|
0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const displayBreakfastPrice =
|
||||||
|
breakfastCount > 0 && !booking.rateDefinition.breakfastIncluded
|
||||||
|
|
||||||
const breakfastMoneyString =
|
const breakfastMoneyString =
|
||||||
breakfastTotalPriceInMoney > 0
|
breakfastTotalPriceInMoney > 0
|
||||||
? `${breakfastTotalPriceInMoney} ${currency}`
|
? `${breakfastTotalPriceInMoney} ${currency}`
|
||||||
@@ -153,7 +156,7 @@ export default async function Specification({
|
|||||||
))}
|
))}
|
||||||
|
|
||||||
{/****** Breakfast ********/}
|
{/****** Breakfast ********/}
|
||||||
{breakfastCount > 0 && (
|
{displayBreakfastPrice && (
|
||||||
<>
|
<>
|
||||||
<Divider color="subtle" />
|
<Divider color="subtle" />
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
Reference in New Issue
Block a user