fix: handle no children
This commit is contained in:
@@ -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>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user