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