fix: should not display bedtypes from not available room

This commit is contained in:
Simon Emanuelsson
2025-05-12 12:14:37 +02:00
committed by Michael Zetterberg
parent 1108105580
commit 6d1f9cbb28

View File

@@ -1237,6 +1237,9 @@ export function getBedTypes(
}
return rooms
.filter(
(room) => room.status === AvailabilityEnum.Available || room.roomsLeft > 0
)
.filter((room) => room.roomType === roomType)
.map((availRoom) => {
const matchingRoom = roomCategories