Browse Source

Bugfix key validation

Carsten Porth 5 years ago
parent
commit
30b2a8476f
1 changed files with 1 additions and 1 deletions
  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) {