Skip to content

Commit 2658856

Browse files
committed
Remove today's event from past
Signed-off-by: Hidde de Vries <[email protected]>
1 parent aaf8d9c commit 2658856

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pages/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ const IndexPage = ({ data: { allEvent } }) => {
1616
const futureMeetups = sortedCities.filter(
1717
city => isFuture(city.node.info.date) || isToday(city.node.info.date)
1818
)
19-
const pastMeetups = sortedCities.filter(city => !isFuture(city.node.info.date))
19+
const pastMeetups = sortedCities.filter(
20+
city => !isFuture(city.node.info.date) && !isToday(city.node.info.date)
21+
)
2022

2123
return (
2224
<Layout>

0 commit comments

Comments
 (0)