Skip to content

Commit

Permalink
fix when no speakers
Browse files Browse the repository at this point in the history
  • Loading branch information
SaraVieira committed Feb 15, 2024
1 parent 1c3ba2d commit 1a1fefa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Lint

on: [push]

Expand Down
12 changes: 7 additions & 5 deletions src/pages/_main.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ const Main = ({ city, attendees }) => {
/>
) : (
<p>
QueerJS is a meetup series where everyone is encouraged to attend and support the speakers and the idea.
QueerJS is a meetup series where everyone is encouraged to attend and support the
speakers and the idea.
<br />
If you're queer and want to speak this meetup is for you! It exists to give you a voice and to make a safe space where everyone is welcome.
If you're queer and want to speak this meetup is for you! It exists to give you a
voice and to make a safe space where everyone is welcome.
</p>
)}
<p>
Expand All @@ -48,12 +50,12 @@ const Main = ({ city, attendees }) => {
</span>
</p>
</Panel>
{speakers.length > 0 || site.cfp ? (
{speakers?.length > 0 || site.cfp ? (
<Panel heading="Speakers">
<Speakers cfp={site.cfp} speakers={speakers.filter((s) => !s.mc)} />
<Speakers cfp={site.cfp} speakers={speakers?.filter((s) => !s.mc)} />
</Panel>
) : null}
{speakers.filter((s) => s.mc).length ? (
{speakers?.filter((s) => s.mc).length ? (
<Panel heading="MC">
<Speakers noSpeak cfp={site.cfp} speakers={speakers.filter((s) => s.mc)} />
</Panel>
Expand Down

0 comments on commit 1a1fefa

Please sign in to comment.