From 4c5ce1aba0de57262e9dbea9214bc91502f8d4a8 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Wed, 20 May 2026 22:44:28 +0200 Subject: [PATCH] fix: suggested players contained selected players --- lib/presentation/widgets/player_selection.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/presentation/widgets/player_selection.dart b/lib/presentation/widgets/player_selection.dart index ca3566a..ec5ac15 100644 --- a/lib/presentation/widgets/player_selection.dart +++ b/lib/presentation/widgets/player_selection.dart @@ -252,6 +252,9 @@ class _PlayerSelectionState extends State { ), ) .toList(); + suggestedPlayers = suggestedPlayers + .where((p) => !selectedPlayers.any((sp) => sp.id == p.id)) + .toList(); } } else { // Otherwise, use the loaded players from the database.