Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Commit

Permalink
Include event banner sideButtons
Browse files Browse the repository at this point in the history
  • Loading branch information
PietiKinnunen committed Feb 1, 2024
1 parent 45351fb commit 533c862
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion server/sanity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ export async function fetchEventsFromSanity() {
const data = await response.json().then((res) => res?.result);
if (!data) return undefined;
if (data?.bannerType === "event")
return { ...data?.event, cta: data?.cta, bannerType: data?.bannerType };
return {
...data?.event,
cta: data?.cta,
bannerType: data?.bannerType,
sideButtons: data?.sideButtons,
};
return data;
}

Expand Down

0 comments on commit 533c862

Please sign in to comment.