mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 15:23:33 +00:00
Prevent the lock component from removing the biometric error message (#2087)
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 2c892eb3a2...91b73fa777
@@ -51,7 +51,7 @@ export class LockComponent extends BaseLockComponent {
|
||||
}, 100);
|
||||
}
|
||||
|
||||
async unlockBiometric() {
|
||||
async unlockBiometric(): Promise<boolean> {
|
||||
if (!this.biometricLock) {
|
||||
return;
|
||||
}
|
||||
@@ -68,8 +68,13 @@ export class LockComponent extends BaseLockComponent {
|
||||
showConfirmButton: false,
|
||||
});
|
||||
|
||||
await super.unlockBiometric();
|
||||
const success = await super.unlockBiometric();
|
||||
|
||||
Swal.close();
|
||||
// Avoid closing the error dialogs
|
||||
if (success) {
|
||||
Swal.close();
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user