diff options
author | 板橋 清信 <itahashi_kiyonobu@cyberagent.co.jp> | 2018-07-23 16:23:34 +0800 |
---|---|---|
committer | 板橋 清信 <itahashi_kiyonobu@cyberagent.co.jp> | 2018-07-23 16:23:34 +0800 |
commit | 3554292c022755f4198a5f864ad7054e3d5421d4 (patch) | |
tree | fadeaefc8b4317b33dba95c26f0921b48a17f901 | |
parent | 79976b702685dd83d356e18fbb01e273e04f2fbf (diff) | |
download | tangerine-wallet-browser-3554292c022755f4198a5f864ad7054e3d5421d4.tar tangerine-wallet-browser-3554292c022755f4198a5f864ad7054e3d5421d4.tar.gz tangerine-wallet-browser-3554292c022755f4198a5f864ad7054e3d5421d4.tar.bz2 tangerine-wallet-browser-3554292c022755f4198a5f864ad7054e3d5421d4.tar.lz tangerine-wallet-browser-3554292c022755f4198a5f864ad7054e3d5421d4.tar.xz tangerine-wallet-browser-3554292c022755f4198a5f864ad7054e3d5421d4.tar.zst tangerine-wallet-browser-3554292c022755f4198a5f864ad7054e3d5421d4.zip |
fix type
-rw-r--r-- | ui/app/token-util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/token-util.js b/ui/app/token-util.js index 4e3c6c78a..0d4233766 100644 --- a/ui/app/token-util.js +++ b/ui/app/token-util.js @@ -44,7 +44,7 @@ async function getSymbolAndDecimals (tokenAddress, existingTokens = []) { function calcTokenAmount (value, decimals) { const multiplier = Math.pow(10, Number(decimals || 0)) - return new BigNumber(value).div(multiplier).toString() + return new BigNumber(value).div(multiplier).toNumber() } |