fix: we showed duplicate rooms because every bed represents a room
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user