aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@users.noreply.github.com>2018-01-04 05:24:17 +0800
committerGitHub <noreply@github.com>2018-01-04 05:24:17 +0800
commitbe398500debacc4befcf7ba112204a12435b5dcc (patch)
treeca2dd43ac020dee652fc65330396689613a3298c /ui
parent409d1d30e9d836926e5361fb9e4b5b025b66e313 (diff)
parentdc9d8b24c6fccd584975c5b9f25c8090b7e8051d (diff)
downloadtangerine-wallet-browser-be398500debacc4befcf7ba112204a12435b5dcc.tar
tangerine-wallet-browser-be398500debacc4befcf7ba112204a12435b5dcc.tar.gz
tangerine-wallet-browser-be398500debacc4befcf7ba112204a12435b5dcc.tar.bz2
tangerine-wallet-browser-be398500debacc4befcf7ba112204a12435b5dcc.tar.lz
tangerine-wallet-browser-be398500debacc4befcf7ba112204a12435b5dcc.tar.xz
tangerine-wallet-browser-be398500debacc4befcf7ba112204a12435b5dcc.tar.zst
tangerine-wallet-browser-be398500debacc4befcf7ba112204a12435b5dcc.zip
Merge pull request #2848 from MetaMask/NewUI-flat
[NewUI] Merge NewUI-flat into uat
Diffstat (limited to 'ui')
-rw-r--r--ui/app/app.js11
-rw-r--r--ui/app/util.js3
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)
}