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

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