File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
course-matrix/frontend/src/pages/Home Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ) => (
Original file line number Diff line number Diff 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 />
You can’t perform that action at this time.
0 commit comments