aboutsummaryrefslogtreecommitdiffstats
path: root/mascara/src/app/first-time/import-account-screen.js
diff options
context:
space:
mode:
authorThomas <thomas.b.huang@gmail.com>2018-05-08 05:30:43 +0800
committerThomas <thomas.b.huang@gmail.com>2018-05-08 05:30:43 +0800
commit8250fd9d6daae3bcef17d8de4e3f2b22ac58ce5b (patch)
tree7deae9281915f1499883fc1eb71b6fb62717dd42 /mascara/src/app/first-time/import-account-screen.js
parent6bf6589c440330d0089da4012709b831c722945a (diff)
parentcaf5a6c15c3375d9d64116d80d87eb064e955e59 (diff)
downloaddexon-wallet-8250fd9d6daae3bcef17d8de4e3f2b22ac58ce5b.tar.gz
dexon-wallet-8250fd9d6daae3bcef17d8de4e3f2b22ac58ce5b.tar.zst
dexon-wallet-8250fd9d6daae3bcef17d8de4e3f2b22ac58ce5b.zip
Merge branch 'develop' into testing
Diffstat (limited to 'mascara/src/app/first-time/import-account-screen.js')
-rw-r--r--mascara/src/app/first-time/import-account-screen.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/mascara/src/app/first-time/import-account-screen.js b/mascara/src/app/first-time/import-account-screen.js
index ab0aca0f..555a2638 100644
--- a/mascara/src/app/first-time/import-account-screen.js
+++ b/mascara/src/app/first-time/import-account-screen.js
@@ -70,10 +70,14 @@ class ImportAccountScreen extends Component {
switch (this.state.selectedOption) {
case OPTIONS.JSON_FILE:
return importNewAccount('JSON File', [ jsonFile, password ])
+ // JS runtime requires caught rejections but failures are handled by Redux
+ .catch()
.then(next)
case OPTIONS.PRIVATE_KEY:
default:
return importNewAccount('Private Key', [ privateKey ])
+ // JS runtime requires caught rejections but failures are handled by Redux
+ .catch()
.then(next)
}
}