aboutsummaryrefslogtreecommitdiff
path: root/build/cleaners/rank.js
diff options
context:
space:
mode:
Diffstat (limited to 'build/cleaners/rank.js')
-rw-r--r--build/cleaners/rank.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/build/cleaners/rank.js b/build/cleaners/rank.js
index 2b8fb77..a9e5f35 100644
--- a/build/cleaners/rank.js
+++ b/build/cleaners/rank.js
@@ -25,10 +25,12 @@ function cleanRank({ packageRank, newPackageRank, monthlyPackageRank, rankPlusCo
name = colored.replace(/ยง./g, '').replace(/[\[\]]/g, '');
}
else {
- name = monthlyPackageRank
- || rank
- || (newPackageRank === null || newPackageRank === void 0 ? void 0 : newPackageRank.replace('_PLUS', '+'))
- || (packageRank === null || packageRank === void 0 ? void 0 : packageRank.replace('_PLUS', '+'));
+ if (monthlyPackageRank !== 'NONE')
+ name = monthlyPackageRank;
+ else
+ name = rank
+ || (newPackageRank === null || newPackageRank === void 0 ? void 0 : newPackageRank.replace('_PLUS', '+'))
+ || (packageRank === null || packageRank === void 0 ? void 0 : packageRank.replace('_PLUS', '+'));
// MVP++ is called Superstar for some reason
if (name === 'SUPERSTAR')
name = 'MVP++';