mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
use some()
This commit is contained in:
@@ -28,7 +28,7 @@ export class EnpassJsonImporter extends BaseImporter implements Importer {
|
|||||||
} else if (item.template_type.indexOf('creditcard.') === 0) {
|
} else if (item.template_type.indexOf('creditcard.') === 0) {
|
||||||
this.processCard(cipher, item.fields);
|
this.processCard(cipher, item.fields);
|
||||||
} else if (item.template_type.indexOf('identity.') < 0 &&
|
} 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);
|
this.processLogin(cipher, item.fields);
|
||||||
} else {
|
} else {
|
||||||
this.processNote(cipher, item.fields);
|
this.processNote(cipher, item.fields);
|
||||||
|
|||||||
Reference in New Issue
Block a user