Skip to content

Commit

Permalink
chore: don't show expired events (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shurtu-gal committed Oct 14, 2023
1 parent d1ab3e9 commit c3e44de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/useEvents.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const useEvents = (eventName) => {

const events = useMemo(
() =>
data?.data
data?.data?.filter((event) => event?.status === 'ACTIVE')
?.map((event) => {
const description = JSON.parse(event.description);
const date = new Date(event.startDate);
Expand Down

0 comments on commit c3e44de

Please sign in to comment.