aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-05-18 05:31:06 +0800
committerDan Finlay <dan@danfinlay.com>2017-05-18 05:31:06 +0800
commit7e7ceab95edcf27a240da478a1f5da2d97cd5e85 (patch)
treed4db40faa6d154060d75481fe6b3e12d24331575 /ui
parent24737ded3466da61fd96015beb6931e59d8232a7 (diff)
downloadtangerine-wallet-browser-7e7ceab95edcf27a240da478a1f5da2d97cd5e85.tar
tangerine-wallet-browser-7e7ceab95edcf27a240da478a1f5da2d97cd5e85.tar.gz
tangerine-wallet-browser-7e7ceab95edcf27a240da478a1f5da2d97cd5e85.tar.bz2
tangerine-wallet-browser-7e7ceab95edcf27a240da478a1f5da2d97cd5e85.tar.lz
tangerine-wallet-browser-7e7ceab95edcf27a240da478a1f5da2d97cd5e85.tar.xz
tangerine-wallet-browser-7e7ceab95edcf27a240da478a1f5da2d97cd5e85.tar.zst
tangerine-wallet-browser-7e7ceab95edcf27a240da478a1f5da2d97cd5e85.zip
Fix decimal tolerance
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/hex-as-decimal-input.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/components/hex-as-decimal-input.js b/ui/app/components/hex-as-decimal-input.js
index d24fdcb7b..4a71e9585 100644
--- a/ui/app/components/hex-as-decimal-input.js
+++ b/ui/app/components/hex-as-decimal-input.js
@@ -139,7 +139,7 @@ HexAsDecimalInput.prototype.constructWarning = function () {
}
function hexify (decimalString) {
- const hexBN = new BN(decimalString.split('.')[0], 10)
+ const hexBN = new BN(parseInt(decimalString), 10)
return '0x' + hexBN.toString('hex')
}