Skip to content

Commit

Permalink
chore: 과제 제출 상태 넘어오지 않는 경우 예외 처리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ghdtjgus76 committed Aug 29, 2024
1 parent fa5ed33 commit 30b55ad
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const AssignmentStatusBox = ({

const attendanceDeadline = `${year}${month}${day}${hours}:${minutes}까지`;
const {
label: assignmentSubmissionStatusLabel,
label: assignmentSubmissionStatusLabel = "",
color: assignmentSubmissionStatusColor,
} = assignmentSubmissionStatusMap[assignmentSubmissionStatus];
} = assignmentSubmissionStatusMap[assignmentSubmissionStatus] || {};

return (
<Box
Expand All @@ -51,9 +51,11 @@ const AssignmentStatusBox = ({
<Text as="h2" typo="h2">
{week}주차 과제
</Text>
<Tag color={assignmentSubmissionStatusColor} variant="solid2">
{assignmentSubmissionStatusLabel}
</Tag>
{assignmentSubmissionStatusLabel && (
<Tag color={assignmentSubmissionStatusColor} variant="solid2">
{assignmentSubmissionStatusLabel}
</Tag>
)}
</Flex>
<Text as="div" className={assignmentNameStyle} typo="body1">
{name}
Expand Down

0 comments on commit 30b55ad

Please sign in to comment.