From 82f8f2b85ecc101608def0827f23ad2c7ee74ea4 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 6 Mar 2019 15:46:40 -0500 Subject: [PATCH] set pinLocked based on failed check --- src/angular/components/lock.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/angular/components/lock.component.ts b/src/angular/components/lock.component.ts index 31493ac872..8c88f6363f 100644 --- a/src/angular/components/lock.component.ts +++ b/src/angular/components/lock.component.ts @@ -60,8 +60,8 @@ export class LockComponent implements OnInit { if (this.pinSet[0]) { const protectedPin = await this.storageService.get(ConstantsService.protectedPin); const decPin = await this.cryptoService.decryptToUtf8(new CipherString(protectedPin)); - this.lockService.pinLocked = false; failed = decPin !== this.pin; + this.lockService.pinLocked = failed; if (!failed) { this.doContinue(); }