1
This commit is contained in:
@@ -68,9 +68,9 @@
|
||||
NSInteger topCount = MIN(3, weakSelf.allCharacters.count);
|
||||
for (NSInteger i = 0; i < topCount; i++) {
|
||||
KBCharacter *c = weakSelf.allCharacters[i];
|
||||
NSInteger rank = (c.rank > 0) ? c.rank : (i + 1);
|
||||
// NSInteger rank = (c.rank > 0) ? c.rank : (i + 1);
|
||||
NSString *title = c.characterName ?: @"";
|
||||
[topItems addObject:@{ @"title": title, @"rank": @(rank) }];
|
||||
[topItems addObject:@{ @"title": title, @"rank": @(i + 1) }];
|
||||
}
|
||||
if (topItems.count > 0) {
|
||||
[weakSelf.topThreeView configWithItems:topItems];
|
||||
|
||||
Reference in New Issue
Block a user