From 7a6786dbaac3d3a884aae2487c78ff8b3441a288 Mon Sep 17 00:00:00 2001 From: nadiavanleur Date: Thu, 28 Mar 2024 12:37:50 +0100 Subject: [PATCH] automatic number updates --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 96dfb8a..0ba66a3 100644 --- a/index.html +++ b/index.html @@ -274,8 +274,8 @@

}; const setValues = async () => { - const values = await getValues(); - Object.keys(FIELDS).forEach((key) => { + const [...values] = await getValues(); + [...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("");