Fix transaction filtering.

This commit is contained in:
Spencer Ofwiti 2021-06-18 19:59:39 +03:00
parent 4e90636870
commit 3b5976c32c
3 changed files with 3 additions and 3 deletions

View File

@ -917,7 +917,7 @@ const transactionTypes: Array<string> = [
'conversions', 'conversions',
'disbursements', 'disbursements',
'rewards', 'rewards',
'reclamation', 'reclamations',
]; ];
/** /**

View File

@ -263,7 +263,7 @@ export class AccountDetailsComponent implements OnInit {
}); });
} else { } else {
this.transactionsDataSource.data = this.transactions.filter( this.transactionsDataSource.data = this.transactions.filter(
(transaction) => transaction.type === this.transactionsType (transaction) => transaction.type + 's' === this.transactionsType
); );
} }
} }

View File

@ -79,7 +79,7 @@ export class TransactionsComponent implements OnInit, AfterViewInit {
}); });
} else { } else {
this.transactionDataSource.data = this.transactions.filter( this.transactionDataSource.data = this.transactions.filter(
(transaction) => transaction.type === this.transactionsType (transaction) => transaction.type + 's' === this.transactionsType
); );
} }
} }