add steam profile button and fix score acc
All checks were successful
Deploy Backend / deploy (push) Successful in 3m18s
Deploy Website / deploy (push) Successful in 5m43s

This commit is contained in:
Lee
2024-10-18 10:27:38 +01:00
parent 6c8ef89bb5
commit 3a734075e0
7 changed files with 36 additions and 4 deletions

View File

@ -58,7 +58,7 @@ export function getScoreSaberScoreFromToken(
return {
leaderboard: "scoresaber",
score: token.baseScore,
accuracy: leaderboard ? token.baseScore / leaderboard.maxScore : Infinity,
accuracy: leaderboard ? (token.baseScore / leaderboard.maxScore) * 100 : Infinity,
rank: token.rank,
modifiers: modifiers,
misses: token.missedNotes + token.badCuts,