diff options
author | Alexander Tseung <alextsg@users.noreply.github.com> | 2018-01-04 03:35:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-04 03:35:14 +0800 |
commit | dc9d8b24c6fccd584975c5b9f25c8090b7e8051d (patch) | |
tree | 732806322abf5602a17533caf1d6a875a97e10a6 /ui/app | |
parent | dfb22471087f040d8345a5a17321e1462842045c (diff) | |
parent | 099f078a3d73b2aed30dc5e1cd3a2facde58606a (diff) | |
download | tangerine-wallet-browser-dc9d8b24c6fccd584975c5b9f25c8090b7e8051d.tar tangerine-wallet-browser-dc9d8b24c6fccd584975c5b9f25c8090b7e8051d.tar.gz tangerine-wallet-browser-dc9d8b24c6fccd584975c5b9f25c8090b7e8051d.tar.bz2 tangerine-wallet-browser-dc9d8b24c6fccd584975c5b9f25c8090b7e8051d.tar.lz tangerine-wallet-browser-dc9d8b24c6fccd584975c5b9f25c8090b7e8051d.tar.xz tangerine-wallet-browser-dc9d8b24c6fccd584975c5b9f25c8090b7e8051d.tar.zst tangerine-wallet-browser-dc9d8b24c6fccd584975c5b9f25c8090b7e8051d.zip |
Merge pull request #2845 from alextsg/NewUI-flat-4.0.5c
[NewUI] Merge master into NewUI-flat
Diffstat (limited to 'ui/app')
-rw-r--r-- | ui/app/app.js | 11 | ||||
-rw-r--r-- | ui/app/util.js | 3 |
2 files changed, 9 insertions, 5 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index 1f40eccbe..c6fce0e47 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -360,11 +360,6 @@ App.prototype.renderPrimary = function () { }) } - if (props.seedWords) { - log.debug('rendering seed words') - return h(HDCreateVaultComplete, {key: 'HDCreateVaultComplete'}) - } - // show initialize screen if (!props.isInitialized || props.forgottenPassword) { // show current view @@ -389,6 +384,12 @@ App.prototype.renderPrimary = function () { }) } + // show seed words screen + if (props.seedWords) { + log.debug('rendering seed words') + return h(HDCreateVaultComplete, {key: 'HDCreateVaultComplete'}) + } + // show current view switch (props.currentView.name) { diff --git a/ui/app/util.js b/ui/app/util.js index 82a5f9f29..70c503550 100644 --- a/ui/app/util.js +++ b/ui/app/util.js @@ -211,6 +211,9 @@ function normalizeEthStringToWei (str) { while (decimal.length < 18) { decimal += '0' } + if (decimal.length > 18) { + decimal = decimal.slice(0, 18) + } const decimalBN = new ethUtil.BN(decimal, 10) eth = eth.add(decimalBN) } |