From 3ac4d1a63f66c8954158bc6a384d2eafcc2b2167 Mon Sep 17 00:00:00 2001 From: Sean Date: Wed, 17 Apr 2024 17:26:02 -0700 Subject: [PATCH] Hide attendance filter when logged out --- src/pages/events.tsx | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/src/pages/events.tsx b/src/pages/events.tsx index fe2bb726..fa27b915 100644 --- a/src/pages/events.tsx +++ b/src/pages/events.tsx @@ -191,22 +191,24 @@ const EventsPage = ({ events, attendances, initialFilters, loggedOut }: EventsPa /> -
- { - setStates('attendance', v); - setPage(0); - }} - /> -
+ {loggedOut ? null : ( +
+ { + setStates('attendance', v); + setPage(0); + }} + /> +
+ )}