1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-23 03:36:18 +02:00

Merge pull request #6185 from chikeichan/5681

Remove password check when importing Account JSON
This commit is contained in:
Dan J Miller 2019-02-19 20:59:17 -03:30 committed by GitHub
commit cbcaf87998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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