From 2d0a7cc9370052b934f714ee6bf3b6027ec4ba4b Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Fri, 21 Oct 2022 16:27:10 +0100 Subject: [PATCH] Added check for NaN on SS PP --- src/curve/ScoreSaberCurve.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/curve/ScoreSaberCurve.js b/src/curve/ScoreSaberCurve.js index 0c91d9d..cd4680d 100644 --- a/src/curve/ScoreSaberCurve.js +++ b/src/curve/ScoreSaberCurve.js @@ -77,6 +77,7 @@ export default class ScoreSaberCurve { ScoreSaberCurve.ppCurve ); - return modifier * ppValue; + const finalPP = modifier * ppValue; + return Number.isNaN(finalPP) ? undefined : finalPP; } }