Skip to content

Commit da7df4d

Browse files
dawangkgithub-actions[bot]
authored andcommitted
Auto-formatted the code using Prettier
1 parent e2bd1d2 commit da7df4d

File tree

1 file changed

+4
-4
lines changed
  • course-matrix/frontend/src/pages/Home

1 file changed

+4
-4
lines changed

course-matrix/frontend/src/pages/Home/Home.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ const Home = () => {
7373
) : (
7474
[...data]
7575
.sort((a: Timetable, b: Timetable) => {
76-
if(a.favorite==b.favorite)
77-
return (b?.updated_at.localeCompare(a?.updated_at));
78-
if(a.favorite) return 1;
79-
if(b.favorite) return -1;
76+
if (a.favorite == b.favorite)
77+
return b?.updated_at.localeCompare(a?.updated_at);
78+
if (a.favorite) return 1;
79+
if (b.favorite) return -1;
8080
return 0;
8181
})
8282
.map((timetable) => (

0 commit comments

Comments
 (0)