Browse Source

fix(ui): strip trailing zeros from currency values

Do not display insignificant trailing zero decimal places when
displaying BTC currency amounts.

The additional trailing zeros make numbers unnecessarily long and
harder to read.
renovate/lint-staged-8.x
Tom Kirkpatrick 6 years ago
parent
commit
dd7115d307
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  1. 2
      app/components/Value/Value.js

2
app/components/Value/Value.js

@ -10,7 +10,7 @@ const Value = ({ value, currency, currentTicker, fiatTicker }) => {
if (currency === 'fiat') {
price = currentTicker[fiatTicker].last
}
return <i>{convert('sats', currency, value, price)}</i>
return <i>{Number(convert('sats', currency, value, price))}</i>
}
Value.propTypes = {

Loading…
Cancel
Save