From 3357939071f54f3e40b126cd2a0d033afdbd35e2 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 27 Oct 2024 10:45:20 +0000 Subject: [PATCH] maybe fix backend crash? --- projects/common/src/token-creators.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common/src/token-creators.ts b/projects/common/src/token-creators.ts index 88be4b6..10b381d 100644 --- a/projects/common/src/token-creators.ts +++ b/projects/common/src/token-creators.ts @@ -97,7 +97,7 @@ export function getScoreSaberScoreFromToken( difficulty: leaderboard.difficulty.difficulty, characteristic: leaderboard.difficulty.characteristic, score: token.baseScore, - accuracy: (token.baseScore / leaderboard.maxScore) * 100, + accuracy: leaderboard.maxScore ? (token.baseScore / leaderboard.maxScore) * 100 : Infinity, rank: token.rank, modifiers: modifiers, misses: token.missedNotes + token.badCuts,