From 912aa752f30463a2d01987fa53cc227220c1e4f1 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 25 Jan 2019 09:30:29 -0500 Subject: [PATCH] check type --- jslib | 2 +- src/app/vault/vault.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index 09df62db4c..b01709240e 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 09df62db4cb29832313bf612fa8b77c63a11f026 +Subproject commit b01709240e4fc0674caea4edfebe5e46249c2bd2 diff --git a/src/app/vault/vault.component.ts b/src/app/vault/vault.component.ts index 9feffa7385..acf026549b 100644 --- a/src/app/vault/vault.component.ts +++ b/src/app/vault/vault.component.ts @@ -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; } });