diff --git a/src/services/updateData.ts b/src/services/updateData.ts index 3101f35..d47dc47 100644 --- a/src/services/updateData.ts +++ b/src/services/updateData.ts @@ -154,6 +154,7 @@ async function updateAverages() { maxCombo: 0, }; const rankedScores = scores.filter((score) => score.pp); + const scoresWithAccuracy = scores.filter((score) => score.acc); scores.forEach((score) => { if (score.acc) { average.acc += score.acc; @@ -175,7 +176,7 @@ async function updateAverages() { average.maxCombo += score.maxCombo; } }); - average.acc /= scores.length; + average.acc /= scoresWithAccuracy.length; average.pp /= rankedScores.length; average.stars /= rankedScores.length; average.mistakes.badCuts /= scores.length;