mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
minor fixes
This commit is contained in:
@@ -689,10 +689,9 @@ abstract class DashboardViewModelBase with Store {
|
||||
_transactionDisposer = reaction(
|
||||
(_) => appStore.wallet!.transactionHistory.transactions.values.toList(),
|
||||
(List<TransactionInfo> txs) {
|
||||
// Clear existing transactions
|
||||
transactions.clear();
|
||||
|
||||
// Apply filtering before adding to the list
|
||||
transactions.clear();
|
||||
|
||||
transactions.addAll(
|
||||
txs.where((tx) {
|
||||
if (wallet.type == WalletType.monero) {
|
||||
@@ -701,7 +700,7 @@ abstract class DashboardViewModelBase with Store {
|
||||
if (wallet.type == WalletType.wownero) {
|
||||
return wow.wownero!.getTransactionInfoAccountId(tx) == wow.wownero!.getCurrentAccount(wallet).id;
|
||||
}
|
||||
return true; // Include other wallet types without filtering
|
||||
return true;
|
||||
}).map(
|
||||
(tx) => TransactionListItem(
|
||||
transaction: tx,
|
||||
|
||||
Reference in New Issue
Block a user