Browse Source

Merge pull request #885 from mrfelton/fix/remove-trailing-zeros-on-value

fix(ui): strip trailing zeros from currency values
renovate/lint-staged-8.x
JimmyMow 6 years ago
committed by GitHub
parent
commit
aeab193dbc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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