Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

Commit

Permalink
Fix "entries per week" count
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmeuli committed Jan 21, 2020
1 parent 70f1ddd commit bbdc84f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class StatsOverlay extends PureComponent<Props, {}> {
}

// Calc number of weeks since first entry
const nrWeeks = today.diff(indexDatesSorted[0], "weeks");
const nrWeeks = today.diff(indexDatesSorted[0], "weeks") + 1;

return {
nrEntries,
Expand Down

0 comments on commit bbdc84f

Please sign in to comment.