Changes
This commit is contained in:
parent
9e82c59ae6
commit
5d3fc936b8
1 changed files with 10 additions and 10 deletions
|
@ -21,13 +21,13 @@ export const selectTransactionItems = createSelector(
|
||||||
const tx = byId[txid];
|
const tx = byId[txid];
|
||||||
|
|
||||||
//ignore dust/fees
|
//ignore dust/fees
|
||||||
if (Math.abs(tx.value) === Math.abs(tx.fee)) {
|
|
||||||
// it is fee only txn if all infos are also empty
|
// it is fee only txn if all infos are also empty
|
||||||
if (
|
if (
|
||||||
|
Math.abs(tx.value) === Math.abs(tx.fee) &&
|
||||||
tx.claim_info.length == 0 &&
|
tx.claim_info.length == 0 &&
|
||||||
tx.support_info.length == 0 &&
|
tx.support_info.length == 0 &&
|
||||||
tx.update_info.length == 0
|
tx.update_info.length == 0
|
||||||
)
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,14 +66,14 @@ export const selectTransactionItems = createSelector(
|
||||||
//value on transaction, amount on outpoint
|
//value on transaction, amount on outpoint
|
||||||
//amount is always positive, but should match sign of value
|
//amount is always positive, but should match sign of value
|
||||||
const amount = parseFloat(
|
const amount = parseFloat(
|
||||||
item.amount ? item.balance_delta : item.value
|
item.balance_delta ? item.balance_delta : item.value
|
||||||
);
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
txid: txid,
|
txid: txid,
|
||||||
date: tx.timestamp ? new Date(parseInt(tx.timestamp) * 1000) : null,
|
date: tx.timestamp ? new Date(parseInt(tx.timestamp) * 1000) : null,
|
||||||
amount: amount,
|
amount: amount,
|
||||||
fee: amount < 0 ? -1 * tx.fee : 0,
|
fee: amount < 0 ? -1 * tx.fee / append.length : 0,
|
||||||
claim_id: item.claim_id,
|
claim_id: item.claim_id,
|
||||||
claim_name: item.claim_name,
|
claim_name: item.claim_name,
|
||||||
type: item.type || "send",
|
type: item.type || "send",
|
||||||
|
|
Loading…
Reference in a new issue