Skip to content

Commit

Permalink
Fix event location
Browse files Browse the repository at this point in the history
  • Loading branch information
FX-Wood committed Nov 8, 2023
1 parent 8decc78 commit 517c250
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions app/pages/events/$id.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@ export default function ({ html, state = {} }) {
let { store = {} } = state
let event = store.events[0]
let display = store.display
let { id, title, sponsors, talks, description, date } = event
let DEFAULT_LOCATION = "The Collective Seattle, 400 Dexter Ave N, Seattle, WA 98109"
let {
id,
title,
sponsors,
talks,
description,
date,
location=DEFAULT_LOCATION
} = event

let hasTalks = talks && talks.length > 0
let hasSponsors = sponsors && sponsors.length > 0
if (display === "email") {
Expand All @@ -30,7 +40,7 @@ export default function ({ html, state = {} }) {
<ul>
<li>πŸ—“ ${eventDate.toLocaleDateString(undefined, {weekday: "long", month: "long", day: "numeric"})}</li>
<li>⏰ 5:30pm - 8:30pm</li>
<li>πŸ“ LOCATION</li>
<li>πŸ“ ${location}</li>
<li>🎟 <a href="https://ti.to/event-loop/">Buy Tickets</a></li>
</ul>
<! -- loop through talks -->
Expand Down

0 comments on commit 517c250

Please sign in to comment.