diff --git a/frontend/app/home.tsx b/frontend/app/home.tsx index a2e6ddbf..deef72f1 100644 --- a/frontend/app/home.tsx +++ b/frontend/app/home.tsx @@ -91,7 +91,7 @@ const Home = () => { } }; - user?.top_events_period && setSelectedPeriod(user.top_events_period); + if (user?.top_events_period) setSelectedPeriod(user.top_events_period); fetchTopEvents(); }, [user, eventStartDate]);