From 42e0c3a7b2ea08f63f53a8553bb164583e860227 Mon Sep 17 00:00:00 2001 From: Liam Date: Mon, 21 Oct 2024 14:18:26 +0100 Subject: [PATCH] still include today --- projects/common/src/model/player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common/src/model/player.ts b/projects/common/src/model/player.ts index 60619ed..e981081 100644 --- a/projects/common/src/model/player.ts +++ b/projects/common/src/model/player.ts @@ -63,7 +63,7 @@ export class Player { const statisticHistory = this.getStatisticHistory(); const history: Record = {}; - for (let i = 1; i <= days; i++) { + for (let i = 0; i <= days; i++) { const date = formatDateMinimal(getMidnightAlignedDate(getDaysAgoDate(i))); const playerHistory = statisticHistory[date]; if (playerHistory !== undefined && Object.keys(playerHistory).length > 0) {