mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-25 07:17:23 +08:00
fix: total test calulation on testActivity chart (@fehmer) (#5596)
This commit is contained in:
parent
34244a3046
commit
c802d0781e
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ export class TestActivityCalendar implements MonkeyTypes.TestActivityCalendar {
|
|||
getTotalTests(): number {
|
||||
const days = differenceInDays(this.endDay, this.startDay);
|
||||
return (
|
||||
this.data.slice(0, days).reduce((a, c) => {
|
||||
this.data.slice(0, days + 1).reduce((a, c) => {
|
||||
return (a ?? 0) + (c ?? 0);
|
||||
}, 0) ?? 0
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue