diff --git a/apps/client/app/(afterLogin)/my-study/_components/AssignmentStatusBox.tsx b/apps/client/app/(afterLogin)/my-study/_components/AssignmentStatusBox.tsx index 8a4535d6..b7b9b238 100644 --- a/apps/client/app/(afterLogin)/my-study/_components/AssignmentStatusBox.tsx +++ b/apps/client/app/(afterLogin)/my-study/_components/AssignmentStatusBox.tsx @@ -13,10 +13,7 @@ import Tag from "wowds-ui/Tag"; interface AssignmentStatusBoxProps { week: number; name: string; - assignmentSubmissionStatus: Extract< - AssignmentSubmissionStatusType, - "SUCCESS" | "FAILURE" - >; + assignmentSubmissionStatus: AssignmentSubmissionStatusType; deadLine: string; } @@ -30,9 +27,9 @@ const AssignmentStatusBox = ({ const attendanceDeadline = `${year}년 ${month}월 ${day}일 ${padWithZero(hours)}:${padWithZero(minutes)}까지`; const { - label: assignmentSubmissionStatusLabel = "", + label: assignmentSubmissionStatusLabel, color: assignmentSubmissionStatusColor, - } = assignmentSubmissionStatusMap[assignmentSubmissionStatus] || {}; + } = assignmentSubmissionStatusMap[assignmentSubmissionStatus]; return (