Skip to content

Commit

Permalink
dry up logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jaasen-livefront committed Jan 3, 2025
1 parent c4d7206 commit 2094fd4
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}

Expand Down

0 comments on commit 2094fd4

Please sign in to comment.