From d636a574c9c78821afcd34242f14db972d72053e Mon Sep 17 00:00:00 2001 From: Seok93 <gkdltjr@naver.com> Date: Tue, 24 Sep 2024 22:43:46 +0900 Subject: [PATCH] =?UTF-8?q?Chore:=20#149=20MSW=20=EB=B3=80=EC=88=98=20?= =?UTF-8?q?=EC=98=A4=ED=83=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mocks/services/taskServiceHandler.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mocks/services/taskServiceHandler.ts b/src/mocks/services/taskServiceHandler.ts index 190a64d6..5ed2dbc4 100644 --- a/src/mocks/services/taskServiceHandler.ts +++ b/src/mocks/services/taskServiceHandler.ts @@ -140,13 +140,13 @@ const taskServiceHandler = [ const project = PROJECT_DUMMY.find((project) => project.projectId === Number(projectId)); if (!project) return new HttpResponse(null, { status: 404 }); - const statues = STATUS_DUMMY.filter((status) => status.projectId === project.projectId); - if (statues.length === 0) return new HttpResponse(null, { status: 404 }); + const statuses = STATUS_DUMMY.filter((status) => status.projectId === project.projectId); + if (statuses.length === 0) return new HttpResponse(null, { status: 404 }); const task = TASK_DUMMY.find((task) => task.taskId === Number(taskId)); if (!task) return new HttpResponse(null, { status: 404 }); - const isIncludedTask = statues.map((status) => status.statusId).includes(task.statusId); + const isIncludedTask = statuses.map((status) => status.statusId).includes(task.statusId); if (!isIncludedTask) return new HttpResponse(null, { status: 404 }); const isAlreadyAssigned = TASK_USER_DUMMY.find(