This commit is contained in:
Joakim Jäderberg
2024-11-19 10:52:35 +01:00
parent d0c4a376ce
commit 0c6371d805
2 changed files with 4 additions and 6 deletions

View File

@@ -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"

View File

@@ -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>