From ac4d0214aaa6eacc371c6b521d945ed1238b5afe Mon Sep 17 00:00:00 2001 From: nadiavanleur Date: Thu, 28 Mar 2024 12:42:57 +0100 Subject: [PATCH] automatic number updates --- index.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 1f06ec3..96dfb8a 100644 --- a/index.html +++ b/index.html @@ -275,9 +275,8 @@

const setValues = async () => { const values = await getValues(); - [...Object.keys(FIELDS)].forEach((key) => { - console.log(values); - const value = [...values].find(total => total.includes(FIELDS[key]))[1]; + Object.keys(FIELDS).forEach((key) => { + const value = values.find(total => total.includes(FIELDS[key]))[1]; const stringValue = value.toString(); const htmlValue = stringValue.split("").map((char) => `${char}`).join(""); document.getElementById(key).innerHTML = htmlValue;