diff --git a/src/components/tasks/partials/singleTaskInList.vue b/src/components/tasks/partials/singleTaskInList.vue index a0b987f3..7031e7c1 100644 --- a/src/components/tasks/partials/singleTaskInList.vue +++ b/src/components/tasks/partials/singleTaskInList.vue @@ -170,7 +170,7 @@ export default { const updateFunc = () => { this.taskService.update(this.task) .then(t => { - if(this.task.done) { + if (this.task.done) { playPop() } this.task = t @@ -180,11 +180,10 @@ export default { this, [{ title: 'Undo', - callback: () => this.markAsDone({ - target: { - checked: !checked, - }, - }), + callback: () => { + this.task.done = !this.task.done + this.markAsDone(!checked) + } }], ) })