mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 20:39:51 +00:00
minor fixes
This commit is contained in:
parent
993dea82a9
commit
068d6916b9
1 changed files with 3 additions and 4 deletions
|
@ -689,10 +689,9 @@ abstract class DashboardViewModelBase with Store {
|
||||||
_transactionDisposer = reaction(
|
_transactionDisposer = reaction(
|
||||||
(_) => appStore.wallet!.transactionHistory.transactions.values.toList(),
|
(_) => appStore.wallet!.transactionHistory.transactions.values.toList(),
|
||||||
(List<TransactionInfo> txs) {
|
(List<TransactionInfo> txs) {
|
||||||
// Clear existing transactions
|
|
||||||
transactions.clear();
|
|
||||||
|
|
||||||
// Apply filtering before adding to the list
|
transactions.clear();
|
||||||
|
|
||||||
transactions.addAll(
|
transactions.addAll(
|
||||||
txs.where((tx) {
|
txs.where((tx) {
|
||||||
if (wallet.type == WalletType.monero) {
|
if (wallet.type == WalletType.monero) {
|
||||||
|
@ -701,7 +700,7 @@ abstract class DashboardViewModelBase with Store {
|
||||||
if (wallet.type == WalletType.wownero) {
|
if (wallet.type == WalletType.wownero) {
|
||||||
return wow.wownero!.getTransactionInfoAccountId(tx) == wow.wownero!.getCurrentAccount(wallet).id;
|
return wow.wownero!.getTransactionInfoAccountId(tx) == wow.wownero!.getCurrentAccount(wallet).id;
|
||||||
}
|
}
|
||||||
return true; // Include other wallet types without filtering
|
return true;
|
||||||
}).map(
|
}).map(
|
||||||
(tx) => TransactionListItem(
|
(tx) => TransactionListItem(
|
||||||
transaction: tx,
|
transaction: tx,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue