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 11420b3 commit 086deea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/ts/components/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export function mainContext(year: number, term: string) {
if (this.userCourses.length > 0) {
if (this.pinnedCourses.length > 0) {
//
const 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

0 comments on commit 086deea

Please sign in to comment.