From 7e7e82da4cc132a66245cd2f1c4c8b13a2cf2c5b Mon Sep 17 00:00:00 2001 From: MaysWind Date: Fri, 1 Jan 2021 01:25:14 +0800 Subject: [PATCH] fix bug --- src/views/mobile/transactions/List.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/mobile/transactions/List.vue b/src/views/mobile/transactions/List.vue index 6586b8f0..43b52d9c 100644 --- a/src/views/mobile/transactions/List.vue +++ b/src/views/mobile/transactions/List.vue @@ -569,14 +569,14 @@ export default { for (let i = 0; i < transactionMonthList.items.length; i++) { const transaction = transactionMonthList.items[i]; - if (!transaction.destinationAccount) { + if (!transaction.sourceAccount) { continue; } - let amount = transaction.destinationAmount; + let amount = transaction.sourceAmount; - if (transaction.destinationAccount.currency !== this.defaultCurrency) { - const balance = this.$exchangeRates.getOtherCurrencyAmount(amount, transaction.destinationAccount.currency, this.defaultCurrency); + if (transaction.sourceAccount.currency !== this.defaultCurrency) { + const balance = this.$exchangeRates.getOtherCurrencyAmount(amount, transaction.sourceAccount.currency, this.defaultCurrency); if (!this.$utilities.isNumber(balance)) { if (transaction.type === this.$constants.transaction.allTransactionTypes.Expense) {