fix: should not display bedtypes from not available room
This commit is contained in:
committed by
Michael Zetterberg
parent
1108105580
commit
6d1f9cbb28
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user