Merge pull request #731 from lbryio/txn_list
Use balance_delta in txn list
This commit is contained in:
commit
91807fb896
2 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
*
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue