mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-02 03:48:14 +03:00
Fix bug where algorithm names werent prettied on UGPTLeaderboards
This commit is contained in:
@@ -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({
|
||||
</Link>
|
||||
}
|
||||
>
|
||||
<MiniTable className="text-center" headers={["Position", "User", alg, "Classes"]}>
|
||||
<MiniTable
|
||||
className="text-center"
|
||||
headers={["Position", "User", UppercaseFirst(alg), "Classes"]}
|
||||
>
|
||||
<>
|
||||
{bestNearbyUser >= 1 &&
|
||||
leaderboard.gameStats
|
||||
|
||||
Reference in New Issue
Block a user