1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

check type

This commit is contained in:
Kyle Spearrin
2019-01-25 09:30:29 -05:00
parent 760a0315bc
commit 912aa752f3
2 changed files with 2 additions and 2 deletions

2
jslib

Submodule jslib updated: 09df62db4c...b01709240e

View File

@@ -475,7 +475,7 @@ export class VaultComponent implements OnInit, OnDestroy {
childComponent.onSelected.subscribe((password: string) => {
this.modal.close();
if (this.addEditComponent != null && this.addEditComponent.cipher != null &&
this.addEditComponent.cipher.login != null) {
this.addEditComponent.cipher.type === CipherType.Login && this.addEditComponent.cipher.login != null) {
this.addEditComponent.cipher.login.password = password;
}
});