сделал фильтр транзакций
This commit is contained in:
gofnnp 2023-02-20 17:02:57 +04:00
parent c24e94c255
commit ced1f14cff
2 changed files with 2 additions and 1 deletions

View File

@ -59,6 +59,7 @@ export interface Purchase {
transactionCreateDate: string;
orderSum: number;
transactionSum: number;
transactionType: 'CancelPayFromWallet' | 'PayFromWallet' | 'RefillWallet';
}
export interface Transaction {

View File

@ -58,7 +58,7 @@ export class OrdersComponent implements OnInit {
// return same;
// });
return purchase;
});
}).filter((purchase: Purchase) => ['PayFromWallet', 'CancelPayFromWallet', 'RefillWallet'].includes(purchase.transactionType));
this.purchasesShortArray = this.purchases.slice(0, this.lastViewOrder)
this.ordersLoadingStatus = false;
}