Skip to content

Commit

Permalink
fixing a bug with isBggSynced flag (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkieres authored Dec 4, 2022
1 parent f3da045 commit 04714ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions board_games_companion/lib/stores/board_games_store.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<CollectionImportResult> importCollections(String username) async {
var importResult = CollectionImportResult();
Expand Down

0 comments on commit 04714ae

Please sign in to comment.