|
|
@ -104,11 +104,6 @@ class JsonImportSubview extends Component { |
|
|
|
const passwordInput = document.getElementById('json-password-box') |
|
|
|
const passwordInput = document.getElementById('json-password-box') |
|
|
|
const password = passwordInput.value |
|
|
|
const password = passwordInput.value |
|
|
|
|
|
|
|
|
|
|
|
if (!password) { |
|
|
|
|
|
|
|
const message = this.context.t('needImportPassword') |
|
|
|
|
|
|
|
return displayWarning(message) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
importNewJsonAccount([ fileContents, password ]) |
|
|
|
importNewJsonAccount([ fileContents, password ]) |
|
|
|
.then(({ selectedAddress }) => { |
|
|
|
.then(({ selectedAddress }) => { |
|
|
|
if (selectedAddress) { |
|
|
|
if (selectedAddress) { |
|
|
|