Skip to content

Commit

Permalink
Allow coordinators to open games where players have left
Browse files Browse the repository at this point in the history
  • Loading branch information
MatrikMoon committed Feb 25, 2023
1 parent 63357f6 commit ec4961b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TournamentAssistantUI/UI/MatchPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ private async Task Connection_MatchInfoUpdated(Match updatedMatch)

private void UpdateTeamsGrid(Match match)
{
var playersInMatch = match.AssociatedUsers.Where(x => MainPage.Client.GetUserByGuid(x).ClientType == User.ClientTypes.Player).Select(MainPage.Client.GetUserByGuid);
var playersInMatch = match.AssociatedUsers.Where(x => MainPage.Client.GetUserByGuid(x)?.ClientType == User.ClientTypes.Player).Select(MainPage.Client.GetUserByGuid);
var teamsInMatch = playersInMatch.Select(x => x.Team?.Id).Where(x => x != null).Distinct().Select(MainPage.Client.GetTeamByGuid);

Dispatcher.Invoke(() =>
Expand Down

0 comments on commit ec4961b

Please sign in to comment.