maybe fix backend crash?
All checks were successful
Deploy Backend / docker (ubuntu-latest) (push) Successful in 1m13s
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m24s

This commit is contained in:
Lee 2024-10-27 10:45:20 +00:00
parent f3737ce7a5
commit 3357939071

@ -97,7 +97,7 @@ export function getScoreSaberScoreFromToken(
difficulty: leaderboard.difficulty.difficulty, difficulty: leaderboard.difficulty.difficulty,
characteristic: leaderboard.difficulty.characteristic, characteristic: leaderboard.difficulty.characteristic,
score: token.baseScore, score: token.baseScore,
accuracy: (token.baseScore / leaderboard.maxScore) * 100, accuracy: leaderboard.maxScore ? (token.baseScore / leaderboard.maxScore) * 100 : Infinity,
rank: token.rank, rank: token.rank,
modifiers: modifiers, modifiers: modifiers,
misses: token.missedNotes + token.badCuts, misses: token.missedNotes + token.badCuts,