diff --git a/app/pages/events/$id.mjs b/app/pages/events/$id.mjs index 8bbc194..d2b5dfb 100644 --- a/app/pages/events/$id.mjs +++ b/app/pages/events/$id.mjs @@ -3,15 +3,15 @@ import { marked } from "marked" export default function ({ html, state = {} }) { let { store = {} } = state let event = store.events[0] - let hasTalks = event.talks && event.talks.length > 0 - let { id, title, sponsors, description } = event - + let { id, title, sponsors, talks, description } = event + let hasTalks = talks && talks.length > 0 + let hasSponsors = sponsors && sponsors.length > 0 return html`

${title}

${description && `

${marked(description)}

` }

Thanks to our Sponsors ❤️

- ${sponsors ? html`` : null} + ${hasSponsors ? html`` : null} ${hasTalks ? html``: html`

No talks were given durring this event.

`}