diff --git a/src/computed/transaction.js b/src/computed/transaction.js index 46b869033..a45a2a1ab 100644 --- a/src/computed/transaction.js +++ b/src/computed/transaction.js @@ -23,7 +23,7 @@ const ComputedTransaction = store => { t.amountLabel = toAmountLabel(t.amount, settings); t.feeLabel = Number.isInteger(t.fee) ? toAmountLabel(t.fee, settings) - : '-'; + : '0'; if (Number.isInteger(t.confirmations)) { t.confirmationsLabel = t.confirmations.toString(); } diff --git a/test/unit/computed/transaction.spec.js b/test/unit/computed/transaction.spec.js index 82c05b60e..1c6754c78 100644 --- a/test/unit/computed/transaction.spec.js +++ b/test/unit/computed/transaction.spec.js @@ -56,7 +56,7 @@ describe('Computed Transactions Unit Tests', () => { expect(tx.feeLabel, 'to match', /0[,.]0000825/); expect(tx.confirmationsLabel, 'to equal', '0'); const inv = store.computedTransactions.find(t => t.id === '2'); - expect(inv.feeLabel, 'to equal', '-'); + expect(inv.feeLabel, 'to equal', '0'); expect(inv.confirmationsLabel, 'to be', undefined); });