소스 검색

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) {