Skip to content

Commit

Permalink
Merge pull request #1037 from LiskHQ/1033-fix-amount-of-non-send-tx
Browse files Browse the repository at this point in the history
Fix amount of non-send transactions in the list - Closes #1033
  • Loading branch information
slaweet authored Jul 13, 2018
2 parents ffae635 + 94fd5fc commit 1d8b86c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/transactions/amount.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ const Amount = (props) => {
params.className = 'greenLabel';
params.pre = '+';
} else if ((props.value.type !== transactionTypes.send ||
props.value.recipientId !== props.address) && props.value.amount !== 0) {
props.value.recipientId !== props.address) && props.value.amount !== '0') {
params.pre = '-';
params.className = 'greyLabel';
params.clickToSendEnabled = props.value.type === transactionTypes.send;
}
const amount = props.value.amount === 0 ? '-' : <LiskAmount val={props.value.amount} />;
const amount = props.value.amount === '0' ? '-' : <LiskAmount val={props.value.amount} />;
return <span id='transactionAmount' className={styles[params.className]}>
{ params.pre }{amount}
</span>;
Expand Down

0 comments on commit 1d8b86c

Please sign in to comment.