Skip to content

Commit

Permalink
Merge pull request #3138 from Geczy/patch-1
Browse files Browse the repository at this point in the history
fix: 404 images on hero page
  • Loading branch information
howardchung committed Jan 8, 2024
2 parents 1ce51d6 + a1fabe0 commit 93cc84f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Hero/Abilities.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const renderAbilities = abilities => abilities.map(ability => (
));

const Abilities = ({ hero }) => {
const filterAbilities = toFilterAbs => toFilterAbs.filter(ability => (ability !== 'generic_hidden'));

const filterAbilities = (toFilterAbs) =>
toFilterAbs.filter((ability) => ability !== 'generic_hidden' && abilities[ability].behavior !== 'Hidden');
const mapAbilities = toFilterAbs => toFilterAbs.map((ability, id) => ({ data: abilities[ability], key: id }));
const mapTalents = talents => talents.map(talent => ({ ...abilities[talent.name], ...talent }));

Expand Down

0 comments on commit 93cc84f

Please sign in to comment.