Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: show events select (#10186)
Browse files Browse the repository at this point in the history
* fix: show events select

* fix: default to no selected option
  • Loading branch information
eddiejaoude authored Jan 27, 2024
1 parent 9ed1736 commit 6ad2504
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/user/UserEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
} from "@services/utils/event/filterEvent";

const allEventOptions = [
{ value: "", name: "options" },
{ value: "all", name: "All Events" },
{ value: "future", name: "Future Events" },
{ value: "ongoing", name: "Ongoing Events" },
Expand Down Expand Up @@ -53,7 +54,7 @@ export default function UserEvents({
<Alert type="info" message="No Events found" />
)}

{eventsToShow.length > 0 && (
{events.length > 0 && (
<Select
name="event-type"
value={eventType}
Expand Down

0 comments on commit 6ad2504

Please sign in to comment.