浏览代码

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!");
   }