1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

Fix auto biometric prompt for browser (#8137)

This commit is contained in:
Matt Gibson
2024-02-28 11:46:21 -05:00
committed by GitHub
parent 668980ad38
commit 0e9a4239a5

View File

@@ -104,7 +104,7 @@ export class LockComponent extends BaseLockComponent {
async ngOnInit() {
await super.ngOnInit();
const disableAutoBiometricsPrompt = await firstValueFrom(
const autoBiometricsPrompt = await firstValueFrom(
this.biometricStateService.promptAutomatically$,
);
@@ -112,7 +112,7 @@ export class LockComponent extends BaseLockComponent {
document.getElementById(this.pinEnabled ? "pin" : "masterPassword")?.focus();
if (
this.biometricLock &&
!disableAutoBiometricsPrompt &&
autoBiometricsPrompt &&
this.isInitialLockScreen &&
(await this.authService.getAuthStatus()) === AuthenticationStatus.Locked
) {