From 5e1bf7bcd8fedc7473577196edd9422ed9c7f7bb Mon Sep 17 00:00:00 2001 From: Karl Ranna Date: Wed, 3 Oct 2018 15:38:36 +0300 Subject: [PATCH] Display 0 instead of - for non-existent fee --- src/computed/transaction.js | 2 +- test/unit/computed/transaction.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); });