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