Update app/components/home/tab-content.tsx
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 1m28s
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 1m28s
This commit is contained in:
parent
34a4b3f093
commit
7941e60928
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ export default function TabContent({
|
||||||
(day) => collesByDay[day] && collesByDay[day].length > 0
|
(day) => collesByDay[day] && collesByDay[day].length > 0
|
||||||
);
|
);
|
||||||
for (const day of days) {
|
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) {
|
if (!isSorted) {
|
||||||
collesByDay[day].reverse()
|
collesByDay[day].reverse()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue