diff options
author | Kevin Serrano <kevin.serrano@consensys.net> | 2017-05-17 07:20:58 +0800 |
---|---|---|
committer | Kevin Serrano <kevin.serrano@consensys.net> | 2017-05-17 07:20:58 +0800 |
commit | d8130f1effc31a866476e10153bd854709ae23be (patch) | |
tree | 0e4a2df51df090088d238f975c037254bf47d21b /ui/app/components/bn-as-decimal-input.js | |
parent | 53b8d18a5f649c73a58a96e36a9458903d8af6aa (diff) | |
download | tangerine-wallet-browser-d8130f1effc31a866476e10153bd854709ae23be.tar tangerine-wallet-browser-d8130f1effc31a866476e10153bd854709ae23be.tar.gz tangerine-wallet-browser-d8130f1effc31a866476e10153bd854709ae23be.tar.bz2 tangerine-wallet-browser-d8130f1effc31a866476e10153bd854709ae23be.tar.lz tangerine-wallet-browser-d8130f1effc31a866476e10153bd854709ae23be.tar.xz tangerine-wallet-browser-d8130f1effc31a866476e10153bd854709ae23be.tar.zst tangerine-wallet-browser-d8130f1effc31a866476e10153bd854709ae23be.zip |
Fix reset button.
Diffstat (limited to 'ui/app/components/bn-as-decimal-input.js')
-rw-r--r-- | ui/app/components/bn-as-decimal-input.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/bn-as-decimal-input.js b/ui/app/components/bn-as-decimal-input.js index 6c2132ca1..d0eebe09e 100644 --- a/ui/app/components/bn-as-decimal-input.js +++ b/ui/app/components/bn-as-decimal-input.js @@ -16,10 +16,10 @@ function BnAsDecimalInput () { /* Bn as Decimal Input * * A component for allowing easy, decimal editing - * of a passed in hex string value. + * of a passed in bn string value. * * On change, calls back its `onChange` function parameter - * and passes it an updated hex string. + * and passes it an updated bn string. */ BnAsDecimalInput.prototype.render = function () { @@ -30,8 +30,8 @@ BnAsDecimalInput.prototype.render = function () { const suffix = props.suffix const style = props.style - const newValue = value.toNumber(10) / scale const scale = Math.pow(10, precision) + const newValue = value.toNumber(10) / scale return ( h('.flex-column', [ |