Skip to content

Commit c259c1a

Browse files
committed
feat: rename params
1 parent 2f63a25 commit c259c1a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/src/lib/utils/update-local-plan.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ export const updateLocalPlan = async (
4949
(course: SingleCourse) => {
5050
return onlinePlan.courses.some((oc) => oc.id === course.id);
5151
},
52-
(courseId: SingleCourse, groupId: SingleGroup) => {
52+
(course: SingleCourse, group: SingleGroup) => {
5353
return (
5454
onlinePlan.courses
55-
.find((oc) => oc.id === courseId.id)
56-
?.groups.some((og) => og.id === groupId.id) ?? false
55+
.find((oc) => oc.id === course.id)
56+
?.groups.some((og) => og.id === group.id) ?? false
5757
);
5858
},
5959
);

0 commit comments

Comments
 (0)