Move from the hand.
This commit is contained in:
@@ -59,9 +59,9 @@ else
|
||||
{
|
||||
var accountId = Account.User?.Id;
|
||||
|
||||
this.perspective = accountId == session.Player2 ? WhichPlayer.Player2 : WhichPlayer.Player1;
|
||||
this.isSpectating = !(accountId == this.session.Player1 || accountId == this.session.Player2);
|
||||
Console.WriteLine($"IsSpectating - {isSpectating}. AccountId - {accountId}. Player1 - {this.session.Player1}. Player2 - {this.session.Player2}");
|
||||
this.perspective = accountId == session.Player1.Id ? WhichPlayer.Player1 : WhichPlayer.Player2;
|
||||
Console.WriteLine(new { this.perspective, accountId });
|
||||
this.isSpectating = !(accountId == this.session.Player1.Id || accountId == this.session.Player2?.Id);
|
||||
|
||||
}
|
||||
StateHasChanged();
|
||||
|
||||
Reference in New Issue
Block a user