We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b1f8f3 + 742911d commit a3e8b14Copy full SHA for a3e8b14
src/features/events/pages/PublicEventListPage.tsx
@@ -9,7 +9,7 @@ import { useEvents } from "../hooks/useEvent";
9
10
const EventListPage = () => {
11
const t = useTranslations("EventsPage");
12
- const { events, isLoading } = useEvents();
+ const { data: events, isLoading } = useEvents();
13
14
if (isLoading) {
15
return (
@@ -82,7 +82,7 @@ const EventListPage = () => {
82
className="pt-16 md:pt-8"
83
>
84
<div className="grid grid-cols-1 gap-x-4 gap-y-8 md:grid-cols-2 lg:grid-cols-4">
85
- {events.map((event, index) => (
+ {events?.map((event, index) => (
86
<motion.div
87
key={event?.id}
88
variants={{
0 commit comments