fix: rename children to childrenInRoom
This commit is contained in:
@@ -24,7 +24,7 @@ export default function ChildSelector({
|
||||
|
||||
function increaseChildrenCount(roomIndex: number) {
|
||||
if (currentChildren.length < 5) {
|
||||
setValue(`rooms.${roomIndex}.children.${currentChildren.length}`, {
|
||||
setValue(`rooms.${roomIndex}.childrenInRoom.${currentChildren.length}`, {
|
||||
age: undefined,
|
||||
bed: undefined,
|
||||
})
|
||||
@@ -33,7 +33,7 @@ export default function ChildSelector({
|
||||
function decreaseChildrenCount(roomIndex: number) {
|
||||
if (currentChildren.length > 0) {
|
||||
currentChildren.pop()
|
||||
setValue(`rooms.${roomIndex}.children`, currentChildren)
|
||||
setValue(`rooms.${roomIndex}.childrenInRoom`, currentChildren)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user