Skip to content

Commit

Permalink
Merge pull request #157 from GDSC-Hongik/fix/task-api-dto
Browse files Browse the repository at this point in the history
  • Loading branch information
SeieunYoo authored Nov 3, 2024
2 parents 81e77cd + 95632e0 commit 32a87d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const DailyTaskItem = ({
index: number;
}) => {
const {
todoType,
taskType,
week,
deadLine,
attendanceStatus,
Expand All @@ -20,7 +20,7 @@ const DailyTaskItem = ({
studyDetailId,
} = dailyTask;

return todoType === "ATTENDANCE" ? (
return taskType === "ATTENDANCE" ? (
<AttendanceStatusBox
attendanceStatus={attendanceStatus || "NOT_ATTENDED"}
deadLine={deadLine}
Expand Down
2 changes: 1 addition & 1 deletion apps/client/types/dtos/myStudy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export type StudyCurriculumListDtoType = StudyCurriculumDto[];
export interface DailyTaskDto<T extends DailyTaskType> {
studyDetailId: number;
week: number;
todoType: T;
taskType: T;
deadLine: string;
attendanceStatus: T extends "ATTENDANCE" ? AttendanceStatusType : never;
assignmentTitle: T extends "ASSIGNMENT" ? string : never;
Expand Down

0 comments on commit 32a87d5

Please sign in to comment.