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

Remove password check when importing Account JSON

This commit is contained in:
Chi Kei Chan 2019-02-18 22:01:43 -08:00
parent 89c4353408
commit 0bbfb2e506

View File

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