feat: use correct description for beds in sidepeek

This commit is contained in:
Simon Emanuelsson
2025-06-11 15:02:59 +02:00
committed by Simon.Emanuelsson
parent 38f937f948
commit 07a764211f
4 changed files with 24 additions and 12 deletions

View File

@@ -25,9 +25,6 @@ export default function RoomOne({ user }: { user: SafeUser }) {
breakfastPackages: state.breakfastPackages,
isMultiroom: state.rooms.length > 1,
}))
const {
room: { bedTypes },
} = useRoomContext()
const hasChildWithExtraBed = room.childrenInRoom?.some(
(child) => Number(child.bed) === ChildBedMapEnum.IN_EXTRA_BED
@@ -36,7 +33,7 @@ export default function RoomOne({ user }: { user: SafeUser }) {
const bedTypeInfoText = getBedTypeInfoText(
intl,
!!hasChildWithExtraBed,
bedTypes.length > 1
room.bedTypes.length > 1
)
const showBreakfastStep =