From 5d3fc936b8bea27416cf85b477e0f48a755407b8 Mon Sep 17 00:00:00 2001 From: hackrush Date: Fri, 17 Nov 2017 23:41:12 +0530 Subject: [PATCH] Changes --- ui/js/redux/selectors/wallet.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ui/js/redux/selectors/wallet.js b/ui/js/redux/selectors/wallet.js index 68bb9b469..15182b743 100644 --- a/ui/js/redux/selectors/wallet.js +++ b/ui/js/redux/selectors/wallet.js @@ -21,14 +21,14 @@ export const selectTransactionItems = createSelector( const tx = byId[txid]; //ignore dust/fees - if (Math.abs(tx.value) === Math.abs(tx.fee)) { - // it is fee only txn if all infos are also empty - if ( - tx.claim_info.length == 0 && - tx.support_info.length == 0 && - tx.update_info.length == 0 - ) - return; + // it is fee only txn if all infos are also empty + if ( + Math.abs(tx.value) === Math.abs(tx.fee) && + tx.claim_info.length == 0 && + tx.support_info.length == 0 && + tx.update_info.length == 0 + ) { + return; } let append = []; @@ -66,14 +66,14 @@ export const selectTransactionItems = createSelector( //value on transaction, amount on outpoint //amount is always positive, but should match sign of value const amount = parseFloat( - item.amount ? item.balance_delta : item.value + item.balance_delta ? item.balance_delta : item.value ); return { txid: txid, date: tx.timestamp ? new Date(parseInt(tx.timestamp) * 1000) : null, amount: amount, - fee: amount < 0 ? -1 * tx.fee : 0, + fee: amount < 0 ? -1 * tx.fee / append.length : 0, claim_id: item.claim_id, claim_name: item.claim_name, type: item.type || "send",