Fix transaction filtering.
This commit is contained in:
parent
4e90636870
commit
3b5976c32c
@ -917,7 +917,7 @@ const transactionTypes: Array<string> = [
|
|||||||
'conversions',
|
'conversions',
|
||||||
'disbursements',
|
'disbursements',
|
||||||
'rewards',
|
'rewards',
|
||||||
'reclamation',
|
'reclamations',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user