Skip to content

Commit

Permalink
Skip empty brackets if there are no participant users
Browse files Browse the repository at this point in the history
  • Loading branch information
user890104 committed Oct 1, 2024
1 parent d08d52a commit ff9fbf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Schedule/Schedule.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default function Schedule({
{events.map(event => <section key={event.id} id={'event-'.concat(event.id)}>
<p>
<strong>{event.title}</strong>
{event.participant_users && !isTrackHidden(event.track) && <>
{event.participant_users.length > 0 && !isTrackHidden(event.track) && <>
({event.participant_users.map(speaker => speaker && <Speaker key={speaker.id} {...speaker} />)})
</>}
</p>
Expand Down

0 comments on commit ff9fbf5

Please sign in to comment.