diff --git a/components/Forms/BookingWidget/index.tsx b/components/Forms/BookingWidget/index.tsx index ade125cdc..270a38b04 100644 --- a/components/Forms/BookingWidget/index.tsx +++ b/components/Forms/BookingWidget/index.tsx @@ -40,16 +40,16 @@ export default function Form({ locations, type }: BookingWidgetFormProps) { else bookingWidgetParams.set("hotel", locationData.operaId || "") data.rooms.forEach((room, index) => { - bookingWidgetParams.set(`room[${index}].adults`, `${room.adults}`) + bookingWidgetParams.set(`room[${index}].adults`, room.adults.toString()) - room.children.map((child, childIndex) => { + room.children.forEach((child, childIndex) => { bookingWidgetParams.set( `room[${index}].child[${childIndex}].age`, - `${child.age}` + child.age.toString() ) bookingWidgetParams.set( `room[${index}].child[${childIndex}].bed`, - `${child.bed}` + child.bed.toString() ) }) })