Fix: created util to handle searchParams for hotelreservation
This commit is contained in:
@@ -34,7 +34,7 @@ export default async function SelectHotel({
|
||||
params,
|
||||
reservationParams,
|
||||
}: SelectHotelProps) {
|
||||
const { selectHotelParams, searchParams, adultsParams, childrenParams } =
|
||||
const { selectHotelParams, searchParams, adultsInRoom, childrenInRoom } =
|
||||
reservationParams
|
||||
|
||||
const intl = await getIntl()
|
||||
@@ -44,8 +44,8 @@ export default async function SelectHotel({
|
||||
cityId: city.id,
|
||||
roomStayStartDate: searchParams.fromDate,
|
||||
roomStayEndDate: searchParams.toDate,
|
||||
adults: adultsParams,
|
||||
children: childrenParams?.toString(),
|
||||
adults: adultsInRoom,
|
||||
children: childrenInRoom,
|
||||
})
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user