Prevent the lock component from removing the biometric error message (#2087)
This commit is contained in:
parent
ed0cc1ced1
commit
b0bc00a2c0
2
jslib
2
jslib
|
@ -1 +1 @@
|
|||
Subproject commit 2c892eb3a2a9aff1e238146b037e6f3eb5dacf9a
|
||||
Subproject commit 91b73fa77727a12c788c00eef4f32065c23b6314
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue