|
|
|
|
@ -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]) |
|
|
|
|
|