Skip to content

Commit 0f9feed

Browse files
committed
fix :the build and lint workflows error
1 parent 7fff0b4 commit 0f9feed

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pages/index.page.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,11 @@ function printEventsForNextWeeks(icalData: { [x: string]: any }) {
145145
}
146146

147147
// Sort the array based on parsedStartDate
148-
arrayDates.sort((x, y) => new Date(x.parsedStartDate).getTime() - new Date(y.parsedStartDate).getTime());
149-
148+
arrayDates.sort(
149+
(x, y) =>
150+
new Date(x.parsedStartDate).getTime() -
151+
new Date(y.parsedStartDate).getTime(),
152+
);
150153
return arrayDates;
151154
}
152155
export function AlgoliaSearch() {

0 commit comments

Comments
 (0)