diff options
author | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-28 15:58:25 -0600 |
---|---|---|
committer | mat <27899617+mat-1@users.noreply.github.com> | 2021-02-28 15:58:25 -0600 |
commit | d08c072271861b9fe64cf8d84e6b1610005f36b1 (patch) | |
tree | fac83a37a28e0652989e5b729358e1d9c96cf14e /src/cleaners | |
parent | d9a7e35f7635c48a928ce362654da094b69c042c (diff) | |
download | skyblock-api-d08c072271861b9fe64cf8d84e6b1610005f36b1.tar.gz skyblock-api-d08c072271861b9fe64cf8d84e6b1610005f36b1.tar.bz2 skyblock-api-d08c072271861b9fe64cf8d84e6b1610005f36b1.zip |
fix some players having "normal" rank
Diffstat (limited to 'src/cleaners')
-rw-r--r-- | src/cleaners/rank.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cleaners/rank.ts b/src/cleaners/rank.ts index 0e17a17..6d12f6f 100644 --- a/src/cleaners/rank.ts +++ b/src/cleaners/rank.ts @@ -39,9 +39,10 @@ export function cleanRank({ } else { if (monthlyPackageRank && monthlyPackageRank !== 'NONE') name = monthlyPackageRank - else + else if (rank && rank !== 'NORMAL') name = rank - ?? newPackageRank?.replace('_PLUS', '+') + else + name = newPackageRank?.replace('_PLUS', '+') ?? packageRank?.replace('_PLUS', '+') // MVP++ is called Superstar for some reason |