aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2021-02-28 16:09:28 -0600
committermat <27899617+mat-1@users.noreply.github.com>2021-02-28 16:09:28 -0600
commitb69690f7cf2405bc817082cce45185fb389d0bb9 (patch)
treeeb889c700697f2f2c1771ef6e97500dfeff50210
parentf54b3b138db5eb566e5027c458ba77ef5f3560c7 (diff)
parent19054d4b32d4109384e1ea6940de8d024b704e84 (diff)
downloadskyblock-api-b69690f7cf2405bc817082cce45185fb389d0bb9.tar.gz
skyblock-api-b69690f7cf2405bc817082cce45185fb389d0bb9.tar.bz2
skyblock-api-b69690f7cf2405bc817082cce45185fb389d0bb9.zip
Merge branch 'main' of https://github.com/skyblockstats/skyblock-api into main
-rw-r--r--build/cleaners/rank.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/cleaners/rank.js b/build/cleaners/rank.js
index 4fef6c0..70156df 100644
--- a/build/cleaners/rank.js
+++ b/build/cleaners/rank.js
@@ -28,8 +28,10 @@ function cleanRank({ packageRank, newPackageRank, monthlyPackageRank, rankPlusCo
else {
if (monthlyPackageRank && monthlyPackageRank !== 'NONE')
name = monthlyPackageRank;
+ else if (rank && rank !== 'NORMAL')
+ name = rank;
else
- name = (_a = rank !== null && rank !== void 0 ? rank : newPackageRank === null || newPackageRank === void 0 ? void 0 : newPackageRank.replace('_PLUS', '+')) !== null && _a !== void 0 ? _a : packageRank === null || packageRank === void 0 ? void 0 : packageRank.replace('_PLUS', '+');
+ name = (_a = newPackageRank === null || newPackageRank === void 0 ? void 0 : newPackageRank.replace('_PLUS', '+')) !== null && _a !== void 0 ? _a : packageRank === null || packageRank === void 0 ? void 0 : packageRank.replace('_PLUS', '+');
// MVP++ is called Superstar for some reason
if (name === 'SUPERSTAR')
name = 'MVP++';