From: Scott Worley Date: Tue, 25 Jan 2022 22:33:34 +0000 (-0800) Subject: No empty-string-named tasks X-Git-Url: http://git.scottworley.com/vopamoi/commitdiff_plain/f1b121ab0699da579cd8de7f5a0c891c2389f549?ds=sidebyside;hp=75a42da4667eceebea699c52d85fa4b7c3e6a0bc No empty-string-named tasks --- diff --git a/vopamoi.ts b/vopamoi.ts index 8db2865..a3f6ce4 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -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; }