diff options
author | Dan <danjm.com@gmail.com> | 2017-09-19 08:35:52 +0800 |
---|---|---|
committer | Chi Kei Chan <chikeichan@gmail.com> | 2017-09-20 03:56:51 +0800 |
commit | 566ffee8cd4c2d25e5399a9f6fb4d9ed1c8cd564 (patch) | |
tree | 90ff0947c30b2567cfa220ed1bf27079d0dcf99e /ui/app | |
parent | a67d3ecd46ac2b9932d1a4181bb76631b27629c2 (diff) | |
download | tangerine-wallet-browser-566ffee8cd4c2d25e5399a9f6fb4d9ed1c8cd564.tar tangerine-wallet-browser-566ffee8cd4c2d25e5399a9f6fb4d9ed1c8cd564.tar.gz tangerine-wallet-browser-566ffee8cd4c2d25e5399a9f6fb4d9ed1c8cd564.tar.bz2 tangerine-wallet-browser-566ffee8cd4c2d25e5399a9f6fb4d9ed1c8cd564.tar.lz tangerine-wallet-browser-566ffee8cd4c2d25e5399a9f6fb4d9ed1c8cd564.tar.xz tangerine-wallet-browser-566ffee8cd4c2d25e5399a9f6fb4d9ed1c8cd564.tar.zst tangerine-wallet-browser-566ffee8cd4c2d25e5399a9f6fb4d9ed1c8cd564.zip |
Ensure conversion util does not return insignificant trailing zeroes.
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/conversion-util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/conversion-util.js b/ui/app/conversion-util.js index b440aea7f..29e5ce668 100644 --- a/ui/app/conversion-util.js +++ b/ui/app/conversion-util.js @@ -51,7 +51,7 @@ const toSpecifiedDenomination = { } const baseChange = { hex: n => n.toString(16), - dec: n => n.toString(10), + dec: n => Number(n).toString(10), BN: n => new BN(n.toString(16)), } |