diff --git a/projects/website/src/components/leaderboard/leaderboard-score.tsx b/projects/website/src/components/leaderboard/leaderboard-score.tsx index bf121e3..067bf67 100644 --- a/projects/website/src/components/leaderboard/leaderboard-score.tsx +++ b/projects/website/src/components/leaderboard/leaderboard-score.tsx @@ -3,9 +3,9 @@ import { formatNumberWithCommas, formatPp } from "@ssr/common/utils/number-utils import ScoreSaberPlayerToken from "@ssr/common/types/token/scoresaber/score-saber-player-token"; import { PlayerInfo } from "@/components/player/player-info"; import { clsx } from "clsx"; -import { Modifier } from "@ssr/common/score/modifier"; import Tooltip from "@/components/tooltip"; import { ScoreTimeSet } from "@/components/score/score-time-set"; +import { ScoreModifiers } from "@/components/score/score-modifiers"; type Props = { /** @@ -62,15 +62,12 @@ export default function LeaderboardScore({ score, claimedPlayer }: Props) { display={
Modifiers
-{score.modifiers.join(", ")}
+
- {Object.entries(Modifier)
- .filter(mod => score.modifiers.includes(mod[1] as Modifier))
- .map(mod => mod[0])
- .join(",")}
+
Modifiers
-{score.modifiers.join(", ")}
+
- {acc.toFixed(2)}%
- {modCount > 0
- ? ` ${
- Object.entries(Modifier)
- .filter(mod => score.modifiers.includes(mod[1] as Modifier))
- .map(mod => mod[0])
- .slice(0, 1)[0]
- }`
- : ""}
+ {acc.toFixed(2)}% {modCount > 0 &&