minor fixes
Serhii committed
Feb 20, 2025 at 19:19 UTC
068d6916b977b0500a06fc4577113764a38f8377
1 file changed
+3
-4
lib/view_model/dashboard/dashboard_view_model.dart
+3
-4
@@ -689,10 +689,9 @@ abstract class DashboardViewModelBase with Store {
689
_transactionDisposer = reaction(
690
(_) => appStore.wallet!.transactionHistory.transactions.values.toList(),
691
(List<TransactionInfo> txs) {
692
- // Clear existing transactions
693
- transactions.clear();
692
695
- // Apply filtering before adding to the list
693
+ transactions.clear();
694
+
695
transactions.addAll(
696
txs.where((tx) {
697
if (wallet.type == WalletType.monero) {
@@ -701,7 +700,7 @@ abstract class DashboardViewModelBase with Store {
700
if (wallet.type == WalletType.wownero) {
701
return wow.wownero!.getTransactionInfoAccountId(tx) == wow.wownero!.getCurrentAccount(wallet).id;
702
}
704
- return true; // Include other wallet types without filtering
703
+ return true;
704
}).map(
705
(tx) => TransactionListItem(
706
transaction: tx,