diff --git a/main.js b/main.js index 5c25786..41d5c2b 100644 --- a/main.js +++ b/main.js @@ -15,10 +15,10 @@ function updateExercises() { exercises[t] = []; for (const element of exerciseList) { exercises[t].push({ - exerciseType: element.childNodes[3].value, - repetitionType: element.childNodes[4].value, - reps: element.childNodes[6].value, - weight: element.childNodes[8].value + exerciseType: element.childNodes[1].childNodes[1].value, + repetitionType: element.childNodes[1].childNodes[2].value, + reps: element.childNodes[2].childNodes[1].value, + weight: element.childNodes[3].childNodes[1].value }); } if (exercisesEdited(exercises[t])) {