From 4f49bdcbd03f80b5b668d7b78ba985f29a6ac8b5 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Tue, 7 Dec 2021 19:17:22 +0000 Subject: [PATCH] Fix bug where algorithm names werent prettied on UGPTLeaderboards --- .../users/games/_game/_playtype/LeaderboardsPage.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 e681a52e9..137bf1109 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 @@ -23,6 +23,7 @@ import { GPTLeaderboard, UGPTLeaderboardAdjacent } from "types/api-returns"; import { GamePT, SetState } from "types/react"; import { APIFetchV1, UnsuccessfulAPIFetchResponse } from "util/api"; import { ChangeOpacity } from "util/color-opacity"; +import { UppercaseFirst } from "util/misc"; interface LeaderboardsData { stats: UGPTLeaderboardAdjacent; @@ -161,7 +162,10 @@ function LeaderboardsPageContent({ } > - + <> {bestNearbyUser >= 1 && leaderboard.gameStats