feat(SW-717) Multiple requests if adult differ between rooms
This commit is contained in:
@@ -61,7 +61,7 @@ export default async function SelectRatePage({
|
||||
searchTerm: selectHotelParams.city ?? hotel?.name,
|
||||
arrivalDate: format(arrivalDate, "yyyy-MM-dd"),
|
||||
departureDate: format(departureDate, "yyyy-MM-dd"),
|
||||
noOfAdults: adultsInRoom,
|
||||
noOfAdults: adultsInRoom[0], // TODO: Handle multiple rooms
|
||||
noOfChildren: childrenInRoom?.length,
|
||||
ageOfChildren: childrenInRoom?.map((c) => c.age).join(","),
|
||||
childBedPreference: childrenInRoom
|
||||
@@ -86,7 +86,7 @@ export default async function SelectRatePage({
|
||||
lang={params.lang}
|
||||
fromDate={fromDate.toDate()}
|
||||
toDate={toDate.toDate()}
|
||||
adultCount={adultsInRoom}
|
||||
adultArray={adultsInRoom}
|
||||
childArray={childrenInRoom}
|
||||
/>
|
||||
|
||||
@@ -99,7 +99,7 @@ export default async function SelectRatePage({
|
||||
lang={params.lang}
|
||||
fromDate={fromDate.toDate()}
|
||||
toDate={toDate.toDate()}
|
||||
adultCount={adultsInRoom}
|
||||
adultArray={adultsInRoom}
|
||||
childArray={childrenInRoom}
|
||||
/>
|
||||
</Suspense>
|
||||
|
||||
Reference in New Issue
Block a user