diff --git a/public/index.html b/public/index.html index f73b0ba2..f2343432 100644 --- a/public/index.html +++ b/public/index.html @@ -54,14 +54,21 @@ id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=2f84e9fe-830c-42bf-afa4-32c90d7c5f7b" > - + - + <% } %> diff --git a/src/components/SportIcon/SportIcon.tsx b/src/components/SportIcon/SportIcon.tsx index e28d1f7d..4a01f6fc 100644 --- a/src/components/SportIcon/SportIcon.tsx +++ b/src/components/SportIcon/SportIcon.tsx @@ -52,21 +52,23 @@ export const SportIcon = ({ sport, }: Props) => { const sportType = getSportLexic(sport) - const IconSport = sportIcons[sportType].icon + const IconSport = sportIcons[sportType]?.icon return ( - + {IconSport && ( + + )} ) }