Skip empty brackets if there are no participant users

This commit is contained in:
Vencislav Atanasov 2024-10-01 20:04:42 +03:00
parent d08d52a361
commit ff9fbf50a2
1 changed files with 1 additions and 1 deletions

View File

@ -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>