We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9636ee commit c218f1eCopy full SHA for c218f1e
SportsAnalyzer/Models/Statistics.cs
@@ -426,7 +426,7 @@ public void SetRounds(IEnumerable<int> rounds)
426
public void SetMatches(IEnumerable<FootballMatch> matches)
427
{
428
AllMatches = matches?.ToList() ?? new List<FootballMatch>();
429
- LeagueRoundsNumber = AllMatches.Select(x => x.Round).Max() ?? LeagueRoundsNumber;
+ LeagueRoundsNumber = AllMatches.Max(x => x.Round) ?? LeagueRoundsNumber;
430
}
431
432
private void SetSelectedMatches()
0 commit comments