Skip to content

Commit

Permalink
refactor: use spread in process chapel
Browse files Browse the repository at this point in the history
  • Loading branch information
gahyuun committed Sep 6, 2024
1 parent f8b52be commit f0c4e62
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/ui/lecture/taken-lecture/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ import UpdateTakenLecture from './update-taken-lecture';
const processChapel = (takenLectures: TakenLectureInfoResponse[]) => {
return takenLectures.map((lecture) => {
return {
id: lecture.id,
year: lecture.year,
semester: lecture.semester,
lectureCode: lecture.lectureCode,
lectureName: lecture.lectureName,
...lecture,
credit: lecture.lectureName === '채플' ? 0.5 : lecture.credit,
};
});
Expand Down

0 comments on commit f0c4e62

Please sign in to comment.