fix: we showed duplicate rooms because every bed represents a room

This commit is contained in:
Simon Emanuelsson
2025-03-19 10:01:05 +01:00
parent 200ed55a2c
commit cf91d3d947
12 changed files with 356 additions and 234 deletions

View File

@@ -17,7 +17,6 @@ export function RoomsContainer({
childArray,
fromDate,
hotelData,
hotelId,
isUserLoggedIn,
toDate,
}: RoomsContainerProps) {
@@ -29,7 +28,7 @@ export function RoomsContainer({
const { data: roomsAvailability, isPending: isLoadingAvailability } =
useRoomsAvailability(
adultArray,
hotelId,
hotelData.hotel.id,
fromDateString,
toDateString,
lang,
@@ -42,7 +41,7 @@ export function RoomsContainer({
childArray,
fromDateString,
toDateString,
hotelId,
hotelData.hotel.id,
lang
)
@@ -50,10 +49,6 @@ export function RoomsContainer({
return <RoomsContainerSkeleton />
}
if (!hotelData?.hotel) {
return null
}
if (packages === null) {
// TODO: Log packages error
console.error("[RoomsContainer] unable to fetch packages")