diff options
author | Christian Fehmer <[email protected]> | 2024-07-10 10:27:05 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-10 10:27:05 +0200 |
commit | c802d0781e84b21fe269191b9a56a22d865e1a52 (patch) | |
tree | c42b83359c468ce7f260252c6600bac995936f2b | |
parent | 34244a3046e334f3489dd3e45cfdd7e9d0827cdc (diff) | |
download | monkeytype-c802d0781e84b21fe269191b9a56a22d865e1a52.tar.gz monkeytype-c802d0781e84b21fe269191b9a56a22d865e1a52.zip |
fix: total test calulation on testActivity chart (@fehmer) (#5596)
-rw-r--r-- | frontend/src/ts/elements/test-activity-calendar.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/ts/elements/test-activity-calendar.ts b/frontend/src/ts/elements/test-activity-calendar.ts index 558cfe4a8..07fd76bf9 100644 --- a/frontend/src/ts/elements/test-activity-calendar.ts +++ b/frontend/src/ts/elements/test-activity-calendar.ts @@ -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 ); |