diff --git a/projects/website/src/components/player/chart/generic-player-chart.tsx b/projects/website/src/components/player/chart/generic-player-chart.tsx index 476a001..0a2700f 100644 --- a/projects/website/src/components/player/chart/generic-player-chart.tsx +++ b/projects/website/src/components/player/chart/generic-player-chart.tsx @@ -57,7 +57,7 @@ export default function GenericPlayerChart({ player, datasetConfig }: Props) { let currentHistoryIndex = 0; // Iterate from historyDays-1 to 0 (last 'historyDays' days) - for (let dayAgo = historyDays; dayAgo >= 0; dayAgo--) { + for (let dayAgo = historyDays - 1; dayAgo >= 0; dayAgo--) { const targetDate = new Date(); targetDate.setDate(today.getDate() - dayAgo);