aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorSara Reynolds <sarareynolds@Saras-MacBook-Pro-2.local>2018-07-04 00:47:30 +0800
committerSara Reynolds <sarareynolds@Saras-MacBook-Pro-2.local>2018-07-04 00:50:59 +0800
commitd126887bc3a795d27f54a4ca5178503e522d41d9 (patch)
tree5e4d2189cf03727039d5a2104d92db01a23059ef /ui/app/components
parent1f0cf11af1c94e750bbc4c5238c3ee028350a6c6 (diff)
downloadtangerine-wallet-browser-d126887bc3a795d27f54a4ca5178503e522d41d9.tar.gz
tangerine-wallet-browser-d126887bc3a795d27f54a4ca5178503e522d41d9.tar.zst
tangerine-wallet-browser-d126887bc3a795d27f54a4ca5178503e522d41d9.zip
fixes 4663
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/pages/create-account/import-account/json.js1
-rw-r--r--ui/app/components/pages/create-account/import-account/private-key.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/ui/app/components/pages/create-account/import-account/json.js b/ui/app/components/pages/create-account/import-account/json.js
index 1dc2ba534..453fceb83 100644
--- a/ui/app/components/pages/create-account/import-account/json.js
+++ b/ui/app/components/pages/create-account/import-account/json.js
@@ -109,6 +109,7 @@ class JsonImportSubview extends Component {
.then(({ selectedAddress }) => {
if (selectedAddress) {
history.push(DEFAULT_ROUTE)
+ displayWarning(null)
} else {
displayWarning('Error importing account.')
setSelectedAddress(firstAddress)
diff --git a/ui/app/components/pages/create-account/import-account/private-key.js b/ui/app/components/pages/create-account/import-account/private-key.js
index 5df3777da..7a470c2ad 100644
--- a/ui/app/components/pages/create-account/import-account/private-key.js
+++ b/ui/app/components/pages/create-account/import-account/private-key.js
@@ -99,6 +99,7 @@ PrivateKeyImportView.prototype.createNewKeychain = function () {
.then(({ selectedAddress }) => {
if (selectedAddress) {
history.push(DEFAULT_ROUTE)
+ displayWarning(null)
} else {
displayWarning('Error importing account.')
setSelectedAddress(firstAddress)