]> git.scottworley.com Git - vopamoi/commitdiff
No empty-string-named tasks
authorScott Worley <scottworley@scottworley.com>
Tue, 25 Jan 2022 22:33:34 +0000 (14:33 -0800)
committerScott Worley <scottworley@scottworley.com>
Thu, 27 Jan 2022 20:21:09 +0000 (12:21 -0800)
vopamoi.ts

index 8db28657eaddcdfb56a3ed15797bdacf5c65aba2..a3f6ce45dc5e5259e70bc77a52a5b7d6df4c4b2b 100644 (file)
@@ -34,7 +34,9 @@ function handleKey(event: any) {
 }
 
 function browserCreateTask(form: any) {
-  Model.addTask(form.taskName.value);
+  if (form.taskName.value) {
+    Model.addTask(form.taskName.value);
+  }
   form.taskName.value = "";
   return false;
 }