sub-task/ SW-695 Prefill Guests data in booking widget
This commit is contained in:
@@ -42,7 +42,7 @@ export default function Form({ locations, type }: BookingWidgetFormProps) {
|
||||
data.rooms.forEach((room, index) => {
|
||||
bookingWidgetParams.set(`room[${index}].adults`, room.adults.toString())
|
||||
|
||||
room.children.forEach((child, childIndex) => {
|
||||
room.child.forEach((child, childIndex) => {
|
||||
bookingWidgetParams.set(
|
||||
`room[${index}].child[${childIndex}].age`,
|
||||
child.age.toString()
|
||||
|
||||
Reference in New Issue
Block a user