set pinLocked based on failed check

This commit is contained in:
Kyle Spearrin 2019-03-06 15:46:40 -05:00
parent 199884e6ae
commit 82f8f2b85e
1 changed files with 1 additions and 1 deletions

View File

@ -60,8 +60,8 @@ export class LockComponent implements OnInit {
if (this.pinSet[0]) {
const protectedPin = await this.storageService.get<string>(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();
}