Skip to content

Commit

Permalink
Merge pull request #387 from euanwm/fix/issue_383
Browse files Browse the repository at this point in the history
fixed empty events list
  • Loading branch information
euanwm authored Jul 30, 2024
2 parents e81f2b6 + 335fd66 commit 64fe5d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/components/organisms/eventsListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,14 @@ function EventsListPage() {
<HeaderBar />
<div className={'flex flex-col content-center'}>
<EventsFilters handleFilterChange={handleFilterChange} />
{data && (
{data?.events && (
<div className={'flex flex-col content-center'}>
<EventsListTable events={data} />
</div>
) || (
<div className={'flex flex-col content-center text-center'}>
<p>No recent events found. We hope to provide an update soon. Feel free to contact us on Discord or Instagram and give us a nudge.</p>
</div>
)}
</div>
</>
Expand Down

0 comments on commit 64fe5d9

Please sign in to comment.