From 118595a072a7b546decc24a5a3045172e73473c4 Mon Sep 17 00:00:00 2001 From: Jesko Dujmovic Date: Fri, 22 Oct 2021 18:54:48 +0200 Subject: [PATCH] change --- main.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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])) {