1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 09:23:21 +01:00

Add warning when importing no valid file

Fixes #3089
This commit is contained in:
Dan Finlay 2018-01-30 13:23:59 -08:00
parent 5f2d8eb5d2
commit 11a944719f
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,8 @@
## Current Master
- Add warning for importing some kinds of files.
## 3.13.8 2018-1-29
- Fix provider for Kovan network.

View File

@ -81,6 +81,12 @@ JsonImportSubview.prototype.createKeyringOnEnter = function (event) {
JsonImportSubview.prototype.createNewKeychain = function () {
const state = this.state
if (!state) {
const message = 'You must select a valid file to import.'
return this.props.dispatch(actions.displayWarning(message))
}
const { fileContents } = state
if (!fileContents) {