From f8f5df691938da3fd0167408a62b801a519ba1ef Mon Sep 17 00:00:00 2001 From: Andres Date: Sun, 29 Jun 2025 16:41:58 +0200 Subject: [PATCH] use overallFirstGame instead of seasonFilteredGames for first game display --- src/app/(home)/players/[id]/user.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/(home)/players/[id]/user.tsx b/src/app/(home)/players/[id]/user.tsx index 1526640..8bd4a1e 100644 --- a/src/app/(home)/players/[id]/user.tsx +++ b/src/app/(home)/players/[id]/user.tsx @@ -189,7 +189,8 @@ function UserInfoComponent() { meaningful_games > 0 ? Math.floor((losses / meaningful_games) * 100) : 0, } - const firstGame = seasonFilteredGames.at(-1) + // Get the overall first game (not filtered by season) + const overallFirstGame = games.at(-1) // Get last games for each leaderboard const lastRankedGame = seasonFilteredGames @@ -251,10 +252,10 @@ function UserInfoComponent() {

- {firstGame ? ( + {overallFirstGame ? ( <> First game:{' '} - {format.dateTime(firstGame.gameTime, { + {format.dateTime(overallFirstGame.gameTime, { dateStyle: 'long', timeZone, })}