feat(token-card): Round tokens to appropriate decimal

This commit is contained in:
nicocappabianca
2020-10-25 20:40:03 -03:00
parent 83a5d93625
commit 0c86662396
@@ -70,9 +70,8 @@ class TokenCard extends React.Component {
}
round (value, decimals) {
return Number(Math.round(value+`e${decimals}`)+`e-${decimals}`);
return Number(Math.round(value + `e${decimals}`) + `e-${decimals}`)
}
}
TokenCard.propTypes = {
token: PropTypes.object.isRequired,