fix score feed acc
All checks were successful
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m24s
All checks were successful
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m24s
This commit is contained in:
parent
e403d1f241
commit
0d12e7c024
@ -53,7 +53,8 @@ export function ScoreAccuracyBadge({ score, leaderboard }: ScoreAccuracyProps) {
|
||||
}
|
||||
>
|
||||
<p>
|
||||
{score.accuracy.toFixed(2)}% {modCount > 0 && <ScoreModifiers type="simple" limit={1} score={score} />}
|
||||
{score.accuracy == Infinity ? "∞" : score.accuracy.toFixed(2)}%{" "}
|
||||
{modCount > 0 && <ScoreModifiers type="simple" limit={1} score={score} />}
|
||||
</p>
|
||||
</Tooltip>
|
||||
{scoreImprovement && previousAccuracy && (
|
||||
|
@ -42,6 +42,8 @@ export default function ScoreFeed() {
|
||||
<div className="flex flex-col divide-y divide-border">
|
||||
{scores.map(score => {
|
||||
const player = score.score.leaderboardPlayerInfo;
|
||||
const leaderboard = getScoreSaberLeaderboardFromToken(score.leaderboard);
|
||||
|
||||
return (
|
||||
<div key={score.score.id} className="flex flex-col py-2">
|
||||
<p className="text-sm">
|
||||
@ -51,8 +53,8 @@ export default function ScoreFeed() {
|
||||
</Link>
|
||||
</p>
|
||||
<Score
|
||||
score={getScoreSaberScoreFromToken(score.score)}
|
||||
leaderboard={getScoreSaberLeaderboardFromToken(score.leaderboard)}
|
||||
score={getScoreSaberScoreFromToken(score.score, leaderboard)}
|
||||
leaderboard={leaderboard}
|
||||
settings={{
|
||||
noScoreButtons: true,
|
||||
}}
|
||||
|
Reference in New Issue
Block a user