diff --git a/src/app/tasks.coffee b/src/app/tasks.coffee index 0532fd33a6..0feba1c746 100644 --- a/src/app/tasks.coffee +++ b/src/app/tasks.coffee @@ -43,8 +43,10 @@ module.exports.app = (appExports, model) -> list = model.at "_#{type}List" newModel = model.at('_new' + type.charAt(0).toUpperCase() + type.slice(1)) text = newModel.get() - # Don't add a blank todo - return if /^(\s)*$/.test(text) + # Don't add a blank task + if /^(\s)*$/.test(text) + console.error "Task text entered was an empty string." + return newModel.set '' switch type diff --git a/views/app/index.html b/views/app/index.html index e4fe313316..4ee39b1fee 100644 --- a/views/app/index.html +++ b/views/app/index.html @@ -308,22 +308,20 @@ do a find for the string after "→"