We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4aeeda7 + be86764 commit 39fa0e9Copy full SHA for 39fa0e9
src/scenes/ConferenceList/components/ConferenceList/ConferenceList.tsx
@@ -1,4 +1,4 @@
1
-import { isPast, parseISO } from 'date-fns'
+import { isFuture, isToday, parseISO } from 'date-fns'
2
import { filter } from 'lodash'
3
import React from 'react'
4
import { connectInfiniteHits } from 'react-instantsearch-dom'
@@ -36,7 +36,9 @@ const ConferenceList: React.FC<Props> = ({
36
37
if (showCFP) {
38
filteredConferences = filter(hits, (conf) => {
39
- return conf.cfpEndDate && !isPast(parseISO(conf.cfpEndDate))
+ if (!conf.cfpEndDate) return false
40
+ const cfpEndDate = parseISO(conf.cfpEndDate)
41
+ return isToday(cfpEndDate) || isFuture(cfpEndDate)
42
}) as Conference[]
43
}
44
const confs = groupAndSortConferences(
0 commit comments