Skip to content

Commit 943faef

Browse files
committed
AHHH
1 parent 12cde3f commit 943faef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ReplayBrowser/Pages/Shared/CompactProfileDisplay.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
if (data.characters.length == 0) {
4545
fields.push("No character data available");
4646
} else {
47-
let mostAntagCharacter = data.characters.sort((a, b) => b.antagRoundsPlayed - a.antagRoundsPlayed)[0];
48-
fields.push("Most antag rounds played: " + mostAntagCharacter.characterName + " (" + mostAntagCharacter.antagRoundsPlayed + " rounds)");
47+
let mostCharacter = data.characters.sort((a, b) => b.roundsPlayed - a.roundsPlayed)[0];
48+
fields.push("Most played character: " + mostCharacter.characterName + " (" + mostCharacter.roundsPlayed + " rounds)");
4949
}
5050
if (data.jobCount.length == 0) {
5151
fields.push("No job data available");

0 commit comments

Comments
 (0)