From b0bc00a2c00cceb1f1f14cfdd2314366283410a7 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Tue, 28 Sep 2021 16:37:18 +0200 Subject: [PATCH] Prevent the lock component from removing the biometric error message (#2087) --- jslib | 2 +- src/popup/accounts/lock.component.ts | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/jslib b/jslib index 2c892eb3a2..91b73fa777 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 2c892eb3a2a9aff1e238146b037e6f3eb5dacf9a +Subproject commit 91b73fa77727a12c788c00eef4f32065c23b6314 diff --git a/src/popup/accounts/lock.component.ts b/src/popup/accounts/lock.component.ts index a193cff9bc..684dfc672a 100644 --- a/src/popup/accounts/lock.component.ts +++ b/src/popup/accounts/lock.component.ts @@ -51,7 +51,7 @@ export class LockComponent extends BaseLockComponent { }, 100); } - async unlockBiometric() { + async unlockBiometric(): Promise { 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; } }