Skip to content

Commit

Permalink
Update main.ts
Browse files Browse the repository at this point in the history
eslint prettifier errors are fixed.
  • Loading branch information
barisgul15 committed Oct 26, 2023
1 parent fa48733 commit 11420b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions web/ts/components/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ export function mainContext(year: number, term: string) {
if (this.userCourses.length > 0) {
if (this.pinnedCourses.length > 0) {
//
let pinnedOrUserCourses : Course[] = this.userCourses.concat(
this.pinnedCourses.filter((c : Course) => this.userCourses.indexOf(c) < 0));
const pinnedOrUserCourses : Course[] = this.userCourses.concat(
this.pinnedCourses.filter((c : Course) => this.userCourses.indexOf(c) < 0)
);
this.recently.set(this.getRecently(pinnedOrUserCourses));
this.loadProgresses(pinnedOrUserCourses.map((c) => c.LastRecording.ID));
} else {
Expand Down Expand Up @@ -90,4 +91,4 @@ export function mainContext(year: number, term: string) {
this.recently.forEach((r, i) => (r.LastRecording.Progress = progresses[i]));
},
};
}
}

0 comments on commit 11420b3

Please sign in to comment.