Skip to content

Commit 742911d

Browse files
committed
fix: bug build event hooks public
1 parent 257e915 commit 742911d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/features/events/pages/PublicEventListPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { useEvents } from "../hooks/useEvent";
99

1010
const EventListPage = () => {
1111
const t = useTranslations("EventsPage");
12-
const { events, isLoading } = useEvents();
12+
const { data: events, isLoading } = useEvents();
1313

1414
if (isLoading) {
1515
return (
@@ -82,7 +82,7 @@ const EventListPage = () => {
8282
className="pt-16 md:pt-8"
8383
>
8484
<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) => (
85+
{events?.map((event, index) => (
8686
<motion.div
8787
key={event?.id}
8888
variants={{

0 commit comments

Comments
 (0)