diff --git a/packages/app/app/[organization]/[event]/layout.tsx b/packages/app/app/[organization]/[event]/layout.tsx index ee27e66ff..371f8630d 100644 --- a/packages/app/app/[organization]/[event]/layout.tsx +++ b/packages/app/app/[organization]/[event]/layout.tsx @@ -17,7 +17,7 @@ const Layout = async ({ organization: params.organization, }) const event = await fetchEvent({ - event: params.event, + eventSlug: params.event, }) return (
diff --git a/packages/app/lib/data.ts b/packages/app/lib/data.ts index f94b7d3af..f8d8bb8b4 100644 --- a/packages/app/lib/data.ts +++ b/packages/app/lib/data.ts @@ -116,7 +116,7 @@ export async function fetchEvent({ } export async function fetchEventStages({ - eventId, + event, }: { event: string }): Promise { @@ -291,7 +291,7 @@ export async function fetchNavBarRoutes({ }): Promise { const [eventData, sessionData, speakerData, stageData] = await Promise.all([ - fetchEvent({ event }), + fetchEvent({ eventSlug: event }), fetchEventSessions({ event }), fetchEventSpeakers({ event }), fetchEventStages({ event }),