Teamspiele implementieren #217

Open
flixcoo wants to merge 55 commits from feature/168-teamspiele-implementieren into development
Showing only changes of commit 4c5ce1aba0 - Show all commits

View File

@@ -252,6 +252,9 @@ class _PlayerSelectionState extends State<PlayerSelection> {
), ),
) )
.toList(); .toList();
suggestedPlayers = suggestedPlayers
.where((p) => !selectedPlayers.any((sp) => sp.id == p.id))
.toList();
} }
} else { } else {
// Otherwise, use the loaded players from the database. // Otherwise, use the loaded players from the database.