Skip to content

Commit

Permalink
automatic number updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiavanleur committed Mar 28, 2024
1 parent fba6817 commit 7a6786d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ <h2 class="c-title">
};

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) => `<span>${char}</span>`).join("");
Expand Down

0 comments on commit 7a6786d

Please sign in to comment.