maybe fix backend crash?
This commit is contained in:
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,
|
||||||
|
Reference in New Issue
Block a user