fix: rename children to childrenInRoom
This commit is contained in:
@@ -48,7 +48,7 @@ export default function GuestsRoomsPickerDialog({
|
||||
}, [trigger, onClose])
|
||||
|
||||
const handleAddRoom = useCallback(() => {
|
||||
setValue("rooms", [...roomsValue, { adults: 1, children: [] }], {
|
||||
setValue("rooms", [...roomsValue, { adults: 1, childrenInRoom: [] }], {
|
||||
shouldValidate: true,
|
||||
})
|
||||
}, [roomsValue, setValue])
|
||||
|
||||
Reference in New Issue
Block a user