diff --git a/src/components/ChunkModal.vue b/src/components/ChunkModal.vue index b1350b5..381bcc4 100644 --- a/src/components/ChunkModal.vue +++ b/src/components/ChunkModal.vue @@ -49,7 +49,6 @@ import { Component, Vue } from "vue-property-decorator"; import vxm from "@/store/index.vuex"; import Chunk from "@/types/Chunk"; import DateUtils from "@/util/DateUtils"; -import TaskUtils from "@/util/TaskUtils"; import UserTask from "@/types/Task"; @Component @@ -153,8 +152,8 @@ export default class ChunkModal extends Vue { vxm.store.completedChunks.push(this.chunk); if ( - vxm.store.chunks.chunks.filter((chunk) => - TaskUtils.tasksEqual(chunk.task, this.chunk?.task ?? new UserTask({})) + vxm.store.chunks.chunks.filter( + (chunk) => chunk.task.id === this.chunk?.task?.id ).length <= 1 ) { Vue.delete(vxm.store.tasks, vxm.store.tasks.indexOf(this.chunk.task)); diff --git a/src/components/Day/DayModal.vue b/src/components/Day/DayModal.vue index 203a980..8867b00 100644 --- a/src/components/Day/DayModal.vue +++ b/src/components/Day/DayModal.vue @@ -1,10 +1,6 @@