修正 #面板 命令中的排名展示问题

This commit is contained in:
Kokomi 2022-11-13 11:52:49 +08:00
parent 3a2c672aed
commit dfd729af1d

View File

@ -30,7 +30,7 @@ export default class ProfileRank {
for (let typeKey of ['mark', 'dmg']) {
let typeRank = await this.getTypeRank(profile, typeKey, force)
ret[typeKey] = typeRank
if (!ret.rank || ret.rank <= typeRank.rank) {
if (!ret.rank || ret.rank >= typeRank.rank) {
ret.rank = typeRank.rank
ret.rankType = typeKey
}