Explorar o código

bug fix: trim on null called

Carsten Porth %!s(int64=5) %!d(string=hai) anos
pai
achega
12e5d78f60
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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!");
   }