Skip to content

Commit d8b0f01

Browse files
authored
Show neaerest events first in upcoming events (#2237)
## Description Previously, upcoming events were sorted the in the same manner as past events, but we should show them in ascending order to show the nearest events first.
1 parent 78c8555 commit d8b0f01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/(main)/community/events/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export default async function EventsPage() {
6868
Add a new event
6969
</Button>
7070
</header>
71-
<EventsList events={upcomingEvents}>
71+
<EventsList events={upcomingEvents.reverse()}>
7272
<SubscribeToRssLink />
7373
</EventsList>
7474
<Button className="md:hidden" href={ISSUE_TEMPLATE_LINK}>

0 commit comments

Comments
 (0)