From b633e0b59b0240ee9416d287343a90159e47e8ae Mon Sep 17 00:00:00 2001 From: Liam <67254223+RealFascinated@users.noreply.github.com> Date: Sun, 30 Oct 2022 14:45:12 +0000 Subject: [PATCH] Fix pp showing for unranked maps --- src/utils/utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/utils.js b/src/utils/utils.js index a683289..2b63649 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -31,6 +31,9 @@ export default class Utils { } static calculatePP(stars, acc, type) { + if (stars <= 0) { + return undefined; + } if (type === "BeatLeader") { return getBeatLeaderPP(acc, stars); }