diff --git a/source/commands.ts b/source/commands.ts index 55769a5..4cef504 100644 --- a/source/commands.ts +++ b/source/commands.ts @@ -130,9 +130,10 @@ export const commands: Command[] = [ hint: 'add ', description: 'add a new task', group: 'tasks', - run: async (args, {api, tasks, setTasks}) => { - const task = await api.quickAddTask({text: args}); - setTasks([...tasks, task]); + run: async (args, {api, setMessage, refresh}) => { + await api.quickAddTask({text: args}); + setMessage(`Added: ${args}`); + refresh(); }, }, {