From 96736ea200cc64e72141a6378f08078c5c124142 Mon Sep 17 00:00:00 2001 From: addison Date: Wed, 10 Nov 2021 10:08:41 -0500 Subject: [PATCH] [bug] Check for the right key in hasEncKey --- common/src/services/crypto.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/services/crypto.service.ts b/common/src/services/crypto.service.ts index 7fecf7fa..9434b698 100644 --- a/common/src/services/crypto.service.ts +++ b/common/src/services/crypto.service.ts @@ -337,7 +337,7 @@ export class CryptoService implements CryptoServiceAbstraction { } async hasEncKey(): Promise { - return await this.stateService.getDecryptedCryptoSymmetricKey() != null; + return await this.stateService.getEncryptedCryptoSymmetricKey() != null; } async clearKey(clearSecretStorage: boolean = true, userId?: string): Promise {