diff --git a/board_games_companion/lib/stores/board_games_store.dart b/board_games_companion/lib/stores/board_games_store.dart index e5674636..7d4af6e6 100644 --- a/board_games_companion/lib/stores/board_games_store.dart +++ b/board_games_companion/lib/stores/board_games_store.dart @@ -145,13 +145,13 @@ abstract class _BoardGamesStore with Store { await _boardGamesService.removeBoardGames(bggSyncedBoardGames); await _playthroughService.deletePlaythroughsForGames(bggSyncedBoardGames); - allBoardGames.removeWhere((boardGame) => boardGame.isBggSynced!); + allBoardGames.removeWhere((boardGame) => boardGame.isBggSynced ?? false); } catch (e, stack) { FirebaseCrashlytics.instance.recordError(e, stack); return; } } - +ś @action Future importCollections(String username) async { var importResult = CollectionImportResult();