Check that error is defined in import-account error catch.

feature/default_network_editable
Dan 7 years ago
parent 75581ceebe
commit 03f17d910a
  1. 2
      ui/app/components/pages/create-account/import-account/json.js
  2. 2
      ui/app/components/pages/create-account/import-account/private-key.js

@ -114,7 +114,7 @@ class JsonImportSubview extends Component {
setSelectedAddress(firstAddress) setSelectedAddress(firstAddress)
} }
}) })
.catch(err => displayWarning(err.message || err)) .catch(err => err && displayWarning(err.message || err))
} }
} }

@ -104,5 +104,5 @@ PrivateKeyImportView.prototype.createNewKeychain = function () {
setSelectedAddress(firstAddress) setSelectedAddress(firstAddress)
} }
}) })
.catch(err => displayWarning(err.message || err)) .catch(err => err && displayWarning(err.message || err))
} }

Loading…
Cancel
Save