fix: suggested players contained selected players

This commit is contained in:
2026-05-20 22:44:28 +02:00
parent 369cabe996
commit 4c5ce1aba0

View File

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