From 496063def98f007f8e95ba200f386a02099076c9 Mon Sep 17 00:00:00 2001 From: Maix0 Date: Thu, 15 Jan 2026 16:19:23 +0100 Subject: [PATCH] fixed pong game history color issue --- frontend/src/pages/pongHistory/pongHistory.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/pongHistory/pongHistory.ts b/frontend/src/pages/pongHistory/pongHistory.ts index afb2498..65e7692 100644 --- a/frontend/src/pages/pongHistory/pongHistory.ts +++ b/frontend/src/pages/pongHistory/pongHistory.ts @@ -20,6 +20,7 @@ async function pongHistory(_url: string, args: RouteHandlerParams): Promise You aren\'t logged in ', postInsert: () => { showError("You must be logged in !"); navigateTo("/") } }; } + let targetUserId = args.userid !== 'me' ? args.userid : user.id; let userInfoRes = await client.getUser({ user: args.userid }); if (userInfoRes.kind !== 'success') { @@ -43,9 +44,9 @@ async function pongHistory(_url: string, args: RouteHandlerParams): Promise