Skip to content

Commit

Permalink
Fix sorting of plan dropdown (#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonLim8890 authored Nov 25, 2023
1 parent a769198 commit 00ef0b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend-v2/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const HomePage: NextPage = () => {
if (student.plans.length > 0) {
const sortedPlans = student.plans.sort(
(p1, p2) =>
new Date(p1.updatedAt).getTime() - new Date(p2.updatedAt).getTime()
new Date(p2.updatedAt).getTime() - new Date(p1.updatedAt).getTime()
);
setSelectedPlanId(sortedPlans[0].id);
}
Expand Down

0 comments on commit 00ef0b1

Please sign in to comment.