File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
packages/grant-explorer/src/features Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ const OVERRIDE_PRIVATE_ROUND_IDS = [
64
64
export const filterOutPrivateRounds = ( rounds : RoundGetRound [ ] ) => {
65
65
return rounds . filter (
66
66
( round ) =>
67
+ ( round . roundMetadata && round . roundMetadata . roundType ) &&
67
68
round . roundMetadata . roundType !== "private" ||
68
69
OVERRIDE_PRIVATE_ROUND_IDS . includes ( round . id . toLowerCase ( ) )
69
70
) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ const ExploreRoundsPage = () => {
19
19
// Pass the filter from the search params and build the graphql query
20
20
const rounds = useFilterRounds ( filter , getEnabledChains ( ) ) ;
21
21
22
- const publicRounds = useMemo ( ( ) => rounds . data ?. filter ( round => round . roundMetadata . roundType ?. toLowerCase ( ) !== "private" ) , [ rounds ] ) ;
22
+ const publicRounds = useMemo ( ( ) => rounds . data ?. filter ( round => ( round . roundMetadata && round . roundMetadata . roundType ) && round . roundMetadata . roundType ?. toLowerCase ( ) !== "private" ) , [ rounds ] ) ;
23
23
rounds . data = publicRounds ;
24
24
25
25
const sectionTitle = getExplorerPageTitle ( filter ) ;
You can’t perform that action at this time.
0 commit comments