[F] Rival may lead to unable to login the game

This commit is contained in:
Clansty
2024-08-07 19:46:35 +08:00
parent 7ee4c14fae
commit c11bb3be59
2 changed files with 2 additions and 2 deletions

View File

@@ -127,7 +127,7 @@ class Maimai2(
user = repos.userData.findByCardExtId(myCard.extId).orElse(null) ?: (404 - "User not found")
propertyKey = "favorite_rival"
}
val myRivalList = myRival.propertyValue.split(',').toMutableSet()
val myRivalList = myRival.propertyValue.split(',').filter { it.isNotEmpty() }.toMutableSet()
if (isAdd && myRivalList.size >= 4) {
(400 - "Rival list is full")