Skip to content

Commit

Permalink
Change Unknown to say "Spectator" instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 committed Apr 29, 2024
1 parent 3405174 commit 9f25905
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Client/Components/Pages/Player.razor
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ else
{
if (character.CharacterName == "Unknown")
{
continue;
character.CharacterName = "Spectator";
}

// If this character contains a paranthesis, it's likely a ghost role like mouse (253), so we'll skip it.
if (character.CharacterName.Contains("("))
{
continue;
continue;
}

<tr>
Expand Down
2 changes: 1 addition & 1 deletion Shared/CollectedPlayerData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public override int GetHashCode()

public class CharacterData
{
public string CharacterName { get; init; }
public string CharacterName { get; set; }

Check warning on line 50 in Shared/CollectedPlayerData.cs

View workflow job for this annotation

GitHub Actions / deploy

Non-nullable property 'CharacterName' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
public DateTime LastPlayed { get; set; } = DateTime.MinValue;
public int RoundsPlayed { get; set; }
}

0 comments on commit 9f25905

Please sign in to comment.