Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qutrits committed Apr 13, 2024
1 parent ca7d877 commit 9092168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Views/LeaderboardDisplay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ private void SetPlayerInfo(string userId) {
bool isCreative1 = this.StatsForm.StatLookup.TryGetValue(this.ReplaceLevelIdInShuffleShow(p1.show, p1.round), out LevelStats l1) && l1.IsCreative;
bool isCreative2 = this.StatsForm.StatLookup.TryGetValue(this.ReplaceLevelIdInShuffleShow(p2.show, p2.round), out LevelStats l2) && l2.IsCreative;
int result = isCreative1.CompareTo(isCreative2);
return result == 0 ? string.Compare(p1.roundDisplayName, p2.roundDisplayName, StringComparison.OrdinalIgnoreCase) : result;
return result == 0 ? string.Compare(l1?.Name ?? p1.roundDisplayName, l2?.Name ?? p2.roundDisplayName, StringComparison.OrdinalIgnoreCase) : result;
});
this.playerDetails = ps.pbs;
this.speedrunRank = ps.speedrunrank;
Expand Down

0 comments on commit 9092168

Please sign in to comment.