feat(SW-1012): update query

This commit is contained in:
Fredrik Thorsson
2024-12-11 14:43:13 +01:00
parent 98ce29aa09
commit baf4055938

View File

@@ -614,7 +614,7 @@ export const hotelQueryRouter = router({
const bedTypes = availableRoomsInCategory
.map((availRoom) => {
const matchingRoom = hotelData?.included
const matchingRoom = hotelData?.included?.rooms
?.find((room) =>
room.roomTypes
.map((roomType) => roomType.code)