only update the changed user's info instead of both

This commit is contained in:
2025-05-10 16:20:26 +02:00
parent 3d554e307f
commit 58689e737e
2 changed files with 20 additions and 35 deletions

View File

@@ -38,7 +38,7 @@ export function getPlayerData(
const meaningful_games = games_played - ties
return {
username: currentName,
username: currentName ?? 'Unknown',
games: games_played,
meaningful_games,
wins,