Skip to content

Commit

Permalink
don't use classes like that
Browse files Browse the repository at this point in the history
  • Loading branch information
r-carroll committed Jul 28, 2024
1 parent 3c3a4ec commit ada35d3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions content/reading-tracker.html
Original file line number Diff line number Diff line change
Expand Up @@ -374,13 +374,9 @@ <h2>Minutes spent in each book</h2>

const weeklyTotal = [...weeklyMap.values()].reduce((prev, current) => prev + current, 0);

for(element in weeklyHoursTally) {
element.innerText = weeklyTotal / 60;
}
weeklyHoursTally.innerText = weeklyTotal / 60;

for(element in weeklyMinutesTally) {
element.innerText = weeklyTotal % 60;
}
weeklyMinutesTally.innerText = weeklyTotal % 60;

new Chart(weekChart, {
type: 'line',
Expand Down

0 comments on commit ada35d3

Please sign in to comment.