fix events filter

This commit is contained in:
tree🌴 2024-03-02 18:17:22 +01:00
parent abfa34fff8
commit cfff50e7d2

View file

@ -97,15 +97,16 @@ places = places.sort((x, y) => x.num < y.num ? 1 : -1)
<img src="/events-map.svg" class="w-full" />
</div-->
{upcoming.length > 0}
<div>
<h1 id="upcoming">Upcoming {title} ({upcoming.length})</h1>
<div class="mb-10">
{upcoming.map((event) => (
<EventItem item={event} />
))}
{upcoming.length > 0 &&
<div>
<h1 id="upcoming">Upcoming {title} ({upcoming.length})</h1>
<div class="mb-10">
{upcoming.map((event) => (
<EventItem item={event} />
))}
</div>
</div>
</div>
}
{pastTotal > 0 &&
<div>