MVP #141

Merged
flixcoo merged 705 commits from development into main 2026-01-09 12:55:50 +00:00
Showing only changes of commit 3c7c4598ff - Show all commits

View File

@@ -143,11 +143,17 @@ class _MatchResultViewState extends State<MatchResultView> {
} }
List<Player> getAllPlayers(Match match) { List<Player> getAllPlayers(Match match) {
List<Player> players = [];
if (match.group == null && match.players != null) { if (match.group == null && match.players != null) {
return [...match.players!]; players = [...match.players!];
} else if (match.group != null && match.players != null) { } else if (match.group != null && match.players != null) {
return [...match.players!, ...match.group!.members]; players = [...match.players!, ...match.group!.members];
} else {
players = [...match.group!.members];
} }
return [...match.group!.members];
players.sort((a, b) => a.name.compareTo(b.name));
return players;
} }
} }