Skip to content

Commit

Permalink
fix the math
Browse files Browse the repository at this point in the history
  • Loading branch information
r-carroll committed Jul 28, 2024
1 parent ada35d3 commit c5625d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/reading-tracker.html
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ <h2>Minutes spent in each book</h2>

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

weeklyHoursTally.innerText = weeklyTotal / 60;
weeklyHoursTally.innerText = Math.floor(weeklyTotal / 60);

weeklyMinutesTally.innerText = weeklyTotal % 60;

Expand Down

0 comments on commit c5625d1

Please sign in to comment.