parent
9e1cad31f3
commit
77ecb32411
@ -40,12 +40,11 @@ export class GuestCardComponent implements OnInit {
|
||||
currentPurchases: [],
|
||||
$loading: true,
|
||||
get currentAmount():number {
|
||||
// const amount = this.currentPurchases.reduce((accumulator, currentValue) => {
|
||||
// if (currentValue.transactionType !== 'PayFromWallet') return 0;
|
||||
// return accumulator + currentValue.transactionSum;
|
||||
// }, 0);
|
||||
// return amount * -1
|
||||
return 8601
|
||||
const amount = this.currentPurchases.reduce((accumulator, currentValue) => {
|
||||
if (currentValue.transactionType !== 'PayFromWallet') return 0;
|
||||
return accumulator + currentValue.transactionSum;
|
||||
}, 0);
|
||||
return amount * -1
|
||||
},
|
||||
get lastAmount():number {
|
||||
const amount = this.lastPurchases.reduce((accumulator, currentValue) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user