diff --git a/components/HotelReservation/SelectRate/HotelInfoCard/index.tsx b/components/HotelReservation/SelectRate/HotelInfoCard/index.tsx index 92eebc27d..0ac25e94c 100644 --- a/components/HotelReservation/SelectRate/HotelInfoCard/index.tsx +++ b/components/HotelReservation/SelectRate/HotelInfoCard/index.tsx @@ -1,9 +1,7 @@ -import { Suspense, useEffect } from "react" -import { useIntl } from "react-intl" +import { Suspense } from "react" import { Lang } from "@/constants/languages" import { getHotelData } from "@/lib/trpc/memoizedRequests" -import useRoomAvailableStore from "@/stores/roomAvailability" import { mapFacilityToIcon } from "@/components/ContentType/HotelPage/data" import ImageGallery from "@/components/ImageGallery" diff --git a/components/HotelReservation/SelectRate/Rooms/RoomsContainer.tsx b/components/HotelReservation/SelectRate/Rooms/RoomsContainer.tsx index d0c662431..6d963e5b0 100644 --- a/components/HotelReservation/SelectRate/Rooms/RoomsContainer.tsx +++ b/components/HotelReservation/SelectRate/Rooms/RoomsContainer.tsx @@ -6,7 +6,6 @@ import { getProfileSafely, getRoomAvailability, } from "@/lib/trpc/memoizedRequests" -import { serverClient } from "@/lib/trpc/server" import { safeTry } from "@/utils/safeTry" @@ -63,7 +62,8 @@ export async function RoomsContainer({ roomStayStartDate: fromDateString, roomStayEndDate: toDateString, adults: adultCount, - children: generateChildrenString(childArray), + children: + childArray.length > 0 ? generateChildrenString(childArray) : undefined, }) ) @@ -73,7 +73,7 @@ export async function RoomsContainer({ await roomsAvailabilityPromise if (packagesError) { - console.error("packagesError", { ...packagesError }) + console.error("packagesError", packagesError) return (
Unable to get packages. {JSON.stringify({ ...packagesError })}