Update app/components/home/tab-content.tsx
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 1m28s

This commit is contained in:
Nathan 2025-09-29 11:47:39 +02:00
parent 34a4b3f093
commit 7941e60928

View file

@ -45,7 +45,7 @@ export default function TabContent({
(day) => collesByDay[day] && collesByDay[day].length > 0
);
for (const day of days) {
collesByDay[day]?.sort((a, b) => a?.date - b?.date)
collesByDay[day]?.sort((a, b) => new Date(a?.date) - new Date(b?.date))
if (!isSorted) {
collesByDay[day].reverse()
}