浏览代码

Bugfix key validation

Carsten Porth 5 年之前
父节点
当前提交
30b2a8476f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {