Skip to content

Commit

Permalink
fix page crash
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Aug 1, 2024
1 parent 784efd7 commit cea1116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Visualizations/Table/HeroFacet.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class HeroFacet extends React.Component {

if (!(heroID && facet)) return null;

const selectedFacet = heroAbilities[heroes[heroID].name]?.facets[facet - 1];
const selectedFacet = heroAbilities[heroes[heroID].name]?.facets[facet - 1] ?? {};
const { color, gradient_id, icon, name } = selectedFacet;

const imageURL = `${config.VITE_IMAGE_CDN}/apps/dota2/images/dota_react/icons/facets/${icon}.png`;
Expand Down

0 comments on commit cea1116

Please sign in to comment.