Skip to content

Commit 65585f5

Browse files
committed
fixed load bugs
1 parent da7df4d commit 65585f5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ const Home = () => {
7575
.sort((a: Timetable, b: Timetable) => {
7676
if (a.favorite == b.favorite)
7777
return b?.updated_at.localeCompare(a?.updated_at);
78-
if (a.favorite) return 1;
79-
if (b.favorite) return -1;
78+
if (a.favorite) return -1;
79+
if (b.favorite) return 1;
8080
return 0;
8181
})
8282
.map((timetable) => (

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ const TimetableCard = ({
123123
<Star
124124
className={`w-6 h-6 transition-colors ${
125125
toggled
126-
? "fill-none text-gray-500"
127-
: "fill-yellow-500 text-yellow-500"
126+
? "fill-yellow-500 text-yellow-500"
127+
: "fill-none text-gray-500"
128128
}`}
129129
onClick={() => handleFavourite()}
130130
/>

0 commit comments

Comments
 (0)