diff --git a/board_games_companion/lib/pages/playthroughs/playthrough_players_selection_view_model.dart b/board_games_companion/lib/pages/playthroughs/playthrough_players_selection_view_model.dart index 3cc90c3d..7e9c5f06 100644 --- a/board_games_companion/lib/pages/playthroughs/playthrough_players_selection_view_model.dart +++ b/board_games_companion/lib/pages/playthroughs/playthrough_players_selection_view_model.dart @@ -19,7 +19,7 @@ abstract class _PlaythroughPlayersSelectionViewModel with Store { @computed ObservableList get players => - ([..._playersStore.players].sortAlphabetically()).asObservable(); + ([..._playersStore.activePlayers].sortAlphabetically()).asObservable(); @computed Map get playersMap => {for (final player in players) player.id: player}; @@ -46,7 +46,5 @@ abstract class _PlaythroughPlayersSelectionViewModel with Store { selectedPlayersMap[player.id] = player; } - Future _loadPlayers() async { - await _playersStore.loadPlayers(); - } + Future _loadPlayers() async => _playersStore.loadPlayers(); }