소스 검색

bug fix: trim on null called

Carsten Porth 5 년 전
부모
커밋
12e5d78f60
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/src/pages/settings/settings.ts

+ 1 - 1
app/src/pages/settings/settings.ts

@@ -72,7 +72,7 @@ export class SettingsPage {
   save() {
     this.storage.set("publicKey", this.publicKey);
     this.storage.set("privateKey", this.privateKey);
-    this.storage.set("keywords", this.keywords.trim());
+    this.storage.set("keywords", this.keywords ? this.keywords.trim() : "");
 
     this.showToast("Successfully saved!");
   }