1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-04 05:08:06 +02:00

use some()

This commit is contained in:
Kyle Spearrin 2019-01-17 10:46:43 -05:00
parent 7cd8b63b94
commit fa65b5637b

View File

@ -28,7 +28,7 @@ export class EnpassJsonImporter extends BaseImporter implements Importer {
} else if (item.template_type.indexOf('creditcard.') === 0) {
this.processCard(cipher, item.fields);
} else if (item.template_type.indexOf('identity.') < 0 &&
item.fields.find((f: any) => f.type === 'password' && !this.isNullOrWhitespace(f.value)) != null) {
item.fields.some((f: any) => f.type === 'password' && !this.isNullOrWhitespace(f.value))) {
this.processLogin(cipher, item.fields);
} else {
this.processNote(cipher, item.fields);