Remove password check when importing Account JSON

feature/default_network_editable
Chi Kei Chan 6 years ago
parent 89c4353408
commit 0bbfb2e506
  1. 5
      ui/app/components/pages/create-account/import-account/json.js

@ -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) {

Loading…
Cancel
Save