Merged in fix/SW-2136 (pull request #1720)

fix(SW-2136): correct booking confirmation breakfast logic

* fix(SW-2136): correct booking confirmation breakfast logic


Approved-by: Simon.Emanuelsson
This commit is contained in:
Arvid Norlin
2025-04-03 10:15:19 +00:00
parent 8c2047e847
commit 2272bb4403

View File

@@ -32,7 +32,8 @@ export default function ReceiptRoom({
if (!room) {
return <RoomSkeletonLoader />
}
const breakfastIncluded =
room.breakfastIncluded || room.rateDefinition.breakfastIncluded
const childBedCrib = room.childBedPreferences.find(
(c) => c.bedType === ChildBedTypeEnum.Crib
)
@@ -163,13 +164,13 @@ export default function ReceiptRoom({
</Body>
</div>
) : null}
{room.breakfast || room.breakfastIncluded ? (
{room.breakfast || breakfastIncluded ? (
<div className={styles.entry}>
<Body>{intl.formatMessage({ id: "Breakfast buffet" })}</Body>
{(room.rateDefinition.breakfastIncluded ?? room.breakfastIncluded) ? (
{breakfastIncluded ? (
<Body color="red">{intl.formatMessage({ id: "Included" })}</Body>
) : null}
{room.breakfast ? (
{room.breakfast && !breakfastIncluded ? (
<Body color="uiTextHighContrast">
{formatPrice(
intl,