show percentage
All checks were successful
deploy / deploy (push) Successful in 56s

This commit is contained in:
Lee
2023-10-20 19:43:54 +01:00
parent 206f19926d
commit ae96719976
2 changed files with 11 additions and 5 deletions

View File

@ -248,7 +248,12 @@ export default function Player({ params }: { params: { id: string } }) {
/>
)}
<ScoreStatLabel
value={score.modifiedScore.toFixed(0)}
value={
(
(score.baseScore / leaderboard.maxScore) *
100
).toFixed(2) + "%"
}
/>
</div>
</div>