Skip to content

Commit

Permalink
refactor: changed name of a function and added a new line
Browse files Browse the repository at this point in the history
  • Loading branch information
DereC4 committed Nov 23, 2024
1 parent b33ace6 commit b8a6727
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/pages/background/lib/addCourse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default async function addCourse(scheduleId: string, course: Course, hasC
if (!hasColor) {
course.colors = getUnusedColor(activeSchedule, course);
}

activeSchedule.courses.push(course);
activeSchedule.updatedAt = Date.now();
await UserScheduleStore.set('schedules', schedules);
Expand Down
1 change: 0 additions & 1 deletion src/pages/background/lib/importSchedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export default async function importSchedule(scheduleData: unknown): Promise<voi
const course = new Course(c);
// eslint-disable-next-line no-await-in-loop
await addCourse(newScheduleId, course, true);
console.log(course.colors);
}
console.log('Course schedule successfully parsed!');
} else {
Expand Down

0 comments on commit b8a6727

Please sign in to comment.