Skip to content

Commit

Permalink
Merge pull request #669 from ETCDEVTeam/fix/dont-display-fiat-always
Browse files Browse the repository at this point in the history
Solution: only display fiat for mainnet ETC
  • Loading branch information
BelfordZ authored Jun 25, 2018
2 parents d76548e + 4c7451a commit 62c64d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/tx/TxHistory/List/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ export default connect(

const token = state.tokens.get('tokens').find((t) => t.get('address') === ownProps.tx.get('to'));

const showFiat = !token && launcher.selectors.getChainName(state).toLowerCase() === 'mainnet';
return {
showFiat: launcher.selectors.getChainName(state).toLowerCase() === 'mainnet',
showFiat,
currentBlockHeight: state.network.getIn(['currentBlock', 'height']),
tx: ownProps.tx,
toAccount,
Expand Down

0 comments on commit 62c64d5

Please sign in to comment.