diff --git a/lib/src/stores/action_list/action_list_store.dart b/lib/src/stores/action_list/action_list_store.dart index b38b697b7..2affe8672 100644 --- a/lib/src/stores/action_list/action_list_store.dart +++ b/lib/src/stores/action_list/action_list_store.dart @@ -53,6 +53,9 @@ abstract class ActionListBase with Store { .watch() .listen((_) async => await _updateTransactionsList()); + _onTradesChanged = + tradesSource.watch().listen((_) async => await updateTradeList()); + updateTradeList(); } @@ -145,6 +148,7 @@ abstract class ActionListBase with Store { StreamSubscription> _onTransactionsChangeSubscription; StreamSubscription _onAccountChangeSubscription; StreamSubscription _onTransactionDescriptions; + StreamSubscription _onTradesChanged; @override void dispose() { @@ -157,8 +161,8 @@ abstract class ActionListBase with Store { } _onTransactionDescriptions?.cancel(); - _onWalletChangeSubscription.cancel(); + _onTradesChanged?.cancel(); super.dispose(); }