diff --git a/CHANGELOG.md b/CHANGELOG.md index 611cf0743..fbb46d2c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,8 @@ Web UI version numbers should always match the corresponding version of LBRY App * Fixed regression in #697 causing transaction screen to not load for new users (#755) * Fixed scriolling restore/reset/set (#729) * Fixed sorting by title for published files (#614) + * App now uses the new balance_delta field in the txn list. + * ### Deprecated * diff --git a/ui/js/redux/selectors/wallet.js b/ui/js/redux/selectors/wallet.js index 2c9b6704b..15182b743 100644 --- a/ui/js/redux/selectors/wallet.js +++ b/ui/js/redux/selectors/wallet.js @@ -21,7 +21,13 @@ export const selectTransactionItems = createSelector( const tx = byId[txid]; //ignore dust/fees - if (Math.abs(tx.amount) === Math.abs(tx.fee)) { + // 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; } @@ -60,7 +66,7 @@ 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.value < 0 ? -1 : 1) * item.amount : item.value + item.balance_delta ? item.balance_delta : item.value ); return {