File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,23 +105,20 @@ function ActivityList() {
105105 } , [ activities ] ) ;
106106
107107 const filteredActivities = activities
108- . filter ( activity => showPastEvents || activity . _dateObj >= startOfToday )
109- . filter ( activity => {
110- return (
111- ( ! filter . type || fuzzySearch ( activity . type , filter . type , 0.5 ) ) &&
112- ( ! filter . date || activity . date === filter . date ) &&
113- ( ! filter . location ||
114- fuzzySearch ( activity . location , filter . location , 0.5 ) )
115- ) ;
116- } )
117- . sort ( ( a , b ) => {
118- const dateA = new Date ( a . date ) ;
119- const dateB = new Date ( b . date ) ;
108+ . filter ( activity => showPastEvents || activity . _dateObj >= startOfToday )
109+ . filter ( activity => {
110+ return (
111+ ( ! filter . type || fuzzySearch ( activity . type , filter . type , 0.5 ) ) &&
112+ ( ! filter . date || activity . date === filter . date ) &&
113+ ( ! filter . location || fuzzySearch ( activity . location , filter . location , 0.5 ) )
114+ ) ;
115+ } )
116+ . sort ( ( a , b ) => {
117+ const dateA = new Date ( a . date ) ;
118+ const dateB = new Date ( b . date ) ;
120119
121- return sortOrder === 'earliest'
122- ? dateA - dateB
123- : dateB - dateA ;
124- } ) ;
120+ return sortOrder === 'earliest' ? dateA - dateB : dateB - dateA ;
121+ } ) ;
125122
126123 return (
127124 < div
You can’t perform that action at this time.
0 commit comments