wip
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 (
|
||||
<div>Unable to get packages. {JSON.stringify({ ...packagesError })}</div>
|
||||
|
||||
Reference in New Issue
Block a user