From 2094fd4fce65f120d9e05a6f5f8528e20b419115 Mon Sep 17 00:00:00 2001 From: jaasen-livefront Date: Thu, 2 Jan 2025 16:23:23 -0800 Subject: [PATCH] dry up logic --- .../login-details-section/login-details-section.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/vault/src/cipher-form/components/login-details-section/login-details-section.component.ts b/libs/vault/src/cipher-form/components/login-details-section/login-details-section.component.ts index c3b4255b35c..3a79a2aa8bc 100644 --- a/libs/vault/src/cipher-form/components/login-details-section/login-details-section.component.ts +++ b/libs/vault/src/cipher-form/components/login-details-section/login-details-section.component.ts @@ -70,9 +70,7 @@ export class LoginDetailsSectionComponent implements OnInit { */ get canCaptureTotp() { return ( - this.totpCaptureService != null && - this.totpCaptureService.canCaptureTotp(window) && - this.loginDetailsForm.controls.totp.enabled + this.totpCaptureService?.canCaptureTotp(window) && this.loginDetailsForm.controls.totp.enabled ); }