fix: handle no children

This commit is contained in:
Christel Westerberg
2024-11-25 15:04:38 +01:00
parent 39dff4cd3d
commit 317731c24d
4 changed files with 10 additions and 8 deletions

View File

@@ -65,7 +65,7 @@ export default async function SelectRatePage({
fromDate={fromDate.toDate()}
toDate={toDate.toDate()}
adultCount={adults}
childArray={children ?? []}
childArray={children}
/>
<Suspense key={hotelId} fallback={<RoomsContainerSkeleton />}>
@@ -75,7 +75,7 @@ export default async function SelectRatePage({
fromDate={fromDate.toDate()}
toDate={toDate.toDate()}
adultCount={adults}
childArray={children ?? []}
childArray={children}
/>
</Suspense>
</>