diff --git a/client/src/app/pages/dashboard/users/games/_game/_playtype/LeaderboardsPage.tsx b/client/src/app/pages/dashboard/users/games/_game/_playtype/LeaderboardsPage.tsx index 137bf1109..e90fefd94 100644 --- a/client/src/app/pages/dashboard/users/games/_game/_playtype/LeaderboardsPage.tsx +++ b/client/src/app/pages/dashboard/users/games/_game/_playtype/LeaderboardsPage.tsx @@ -12,6 +12,7 @@ import { COLOUR_SET, FormatGame, GetGameConfig, + GetGamePTConfig, IDStrings, integer, PublicUserDocument, @@ -92,6 +93,8 @@ function LeaderboardsPageContent({ } & GamePT) { const { stats, leaderboard } = data; + const gptConfig = GetGamePTConfig(game, playtype); + const userMap = new Map(); for (const u of stats.users) { @@ -131,7 +134,13 @@ function LeaderboardsPageContent({ {userMap.get(s.userID)?.username} - {(s.ratings[alg] ?? 0).toFixed(2)} + + {s.ratings[alg] + ? gptConfig.profileRatingAlgFormatters[alg] + ? gptConfig.profileRatingAlgFormatters[alg]!(s.ratings[alg]!) + : s.ratings[alg]!.toFixed(2) + : "No Data."} + {/* temp */} {Object.entries(s.classes).length