From d8ed85792a08f6221a2fb54d4974959c709c773b Mon Sep 17 00:00:00 2001 From: stingl Date: Mon, 8 Aug 2022 12:00:10 +0200 Subject: [PATCH] repair stupidity; --- src/views/TasksForTracker.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/TasksForTracker.vue b/src/views/TasksForTracker.vue index 5c25e3b..5fcac0e 100644 --- a/src/views/TasksForTracker.vue +++ b/src/views/TasksForTracker.vue @@ -83,12 +83,12 @@ export default { this.$store.state.selectedTracker.tasks = []; } - let newTasks = [this.newTaskInput]; + let newTasks = []; - if (this.newTaskInput.split(';') > 3) { - newTasks = this.newTaskInput.split(';').reverse().map((task) => { - return task.trim(); - }) + if (this.newTaskInput.split(';').length > 3) { + newTasks = this.newTaskInput.split(';').reverse().map((task) => task.trim()); + } else { + newTasks.push(this.newTaskInput); } newTasks.forEach((task) => {