oops, ternaries

This commit is contained in:
Paul Miller
2023-05-22 12:04:59 -05:00
parent a2cd238492
commit 8784b0f2c7

View File

@@ -58,7 +58,7 @@ function OnChainItem(props: { item: OnChainTx, labels: MutinyTagItem[], network:
kind={"onchain"}
labels={props.labels}
// FIXME: is this something we can put into node logic?
amount={isReceive() ? props.item.received - props.item.sent : props.item.received}
amount={isReceive() ? props.item.received - props.item.sent : props.item.sent - props.item.received}
date={props.item.confirmation_time?.Confirmed?.time}
positive={isReceive()}
onClick={() => setOpen(!open())}