diff --git a/apps/scandic-web/components/HotelReservation/BookingConfirmation/Receipt/Room/index.tsx b/apps/scandic-web/components/HotelReservation/BookingConfirmation/Receipt/Room/index.tsx index 52cac6d6f..6701baf3a 100644 --- a/apps/scandic-web/components/HotelReservation/BookingConfirmation/Receipt/Room/index.tsx +++ b/apps/scandic-web/components/HotelReservation/BookingConfirmation/Receipt/Room/index.tsx @@ -44,6 +44,25 @@ export default function ReceiptRoom({ (c) => c.bedType === ChildBedTypeEnum.ExtraBed ) + const adultsMsg = intl.formatMessage( + { + defaultMessage: "{totalAdults, plural, one {# adult} other {# adults}}", + }, + { totalAdults: room.adults } + ) + + const guestsParts = [adultsMsg] + if (room.childrenAges?.length) { + const childrenMsg = intl.formatMessage( + { + defaultMessage: + "{totalChildren, plural, one {# child} other {# children}}", + }, + { totalChildren: room.childrenAges.length } + ) + guestsParts.push(childrenMsg) + } + return (
@@ -65,15 +84,7 @@ export default function ReceiptRoom({ )}

- {intl.formatMessage( - { - defaultMessage: - "{totalAdults, plural, one {# adult} other {# adults}}", - }, - { - totalAdults: room.adults, - } - )} + {guestsParts.join(", ")}