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 ac4d021 commit 46f6a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ <h2 class="c-title">

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

Please sign in to comment.