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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 = { |
|
|
|