diff --git a/website/client/src/components/tasks/taskModal.vue b/website/client/src/components/tasks/taskModal.vue index 3fdfdf7b66..6a2d7b0372 100644 --- a/website/client/src/components/tasks/taskModal.vue +++ b/website/client/src/components/tasks/taskModal.vue @@ -386,7 +386,7 @@
@@ -1092,11 +1092,11 @@ export default { isChallengeTask () { return Boolean(this.task.challenge && this.task.challenge.id); }, - onUserPage () { + isUserTask () { return !this.challengeId && !this.groupId; }, challengeAccessRequired () { - return this.onUserPage && this.isChallengeTask; + return this.isUserTask && this.isChallengeTask; }, isOriginalChallengeTask () { const isUserChallenge = Boolean(this.task.userId); @@ -1113,9 +1113,6 @@ export default { const type = this.$t(this.task.type); return this.$t(this.purpose === 'edit' ? 'editATask' : 'createTask', { type }); }, - isUserTask () { - return !this.challengeId && !this.groupId; - }, repeatSuffix () { const { task } = this;