diff --git a/website/client/src/components/tasks/task.vue b/website/client/src/components/tasks/task.vue index 7cd044fd19..fe68cf1f67 100644 --- a/website/client/src/components/tasks/task.vue +++ b/website/client/src/components/tasks/task.vue @@ -1162,6 +1162,18 @@ export default { async score (direction) { if (this.showTaskLockIcon) return; if (this.task.type === 'habit' && !this.task[direction]) return; + if ( + this.isGroupTask && direction === 'down' + && ['todo', 'daily'].indexOf(this.task.type) !== -1 + && this.task.group.assignedUsers && !this.task.group.assignedUsers[this.user._id] + ) { + this.$store.dispatch('tasks:needsWork', { + taskId: this.task._id, + userId: keys(this.task.group.assignedUsers)[0], + }); + this.task.completed = false; + return; + } if (this.isYesterdaily === true) { await this.beforeTaskScore(this.task); this.task.completed = !this.task.completed;