Skip to content

Commit

Permalink
Merge pull request #54 from avantifellows/main
Browse files Browse the repository at this point in the history
Prod deployment
  • Loading branch information
Bahugunajii authored Aug 29, 2024
2 parents 2471211 + 0be2a0b commit e5fbb39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/reports/reports_list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export default function ReportsList({ userId }: ReportsListProps) {
async function fetchReportsData() {
try {
const data = await getReports(userId);
data.reports.sort((a: Report, b: Report) =>
new Date(b.start_date).getTime() - new Date(a.start_date).getTime()
);
setResponseData(data);
} catch (error) {
throw error;
Expand Down

0 comments on commit e5fbb39

Please sign in to comment.