Browse Source

Bugfix key validation

Carsten Porth 5 năm trước cách đây
mục cha
commit
30b2a8476f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/src/providers/crypto/crypto.ts

+ 1 - 1
app/src/providers/crypto/crypto.ts

@@ -159,7 +159,7 @@ export class CryptoProvider {
 
   public async isPrivateKeySet(): Promise<boolean> {
     const privateKey = await this.storage.get("privateKey");
-    return privateKey.length > 0;
+    return privateKey;
   }
 
   public encrypt(plainText: string, privateKey: string) {