diff --git a/src/features/MatchesGrid/index.tsx b/src/features/MatchesGrid/index.tsx index fbefccf6..04138cae 100644 --- a/src/features/MatchesGrid/index.tsx +++ b/src/features/MatchesGrid/index.tsx @@ -41,9 +41,16 @@ export const MatchesGrid = memo(({ matches }: MatchesGridProps) => { || selectedLeague[0] === 'all_competitions'))) } - return matches.filter((match) => compareSport(match, selectedSport)) + if (isHomePage && selectedSport) { + return matches.filter((match) => compareSport(match, selectedSport)) + } + + return matches } + useEffect(() => { + if (!isHomePage) return + updateSportIds(matches) // eslint-disable-next-line react-hooks/exhaustive-deps }, [selectedDate, matches])