Skip to content

Commit

Permalink
Update index.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Jan 1, 2024
1 parent d421206 commit d71df19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Matches/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,13 @@ const publicMatchesColumns = strings => [
{
displayName: <StyledTeamIconContainer>{strings.general_radiant}</StyledTeamIconContainer>,
field: 'radiant_team',
displayFn: (row, col, field) => (field || '').split(',').map(heroId =>
displayFn: (row, col, field) => field?.map(heroId =>
(heroes[heroId] ? <HeroImage id={heroId} key={heroId} style={{ width: '50px' }} alt="" /> : null)),
},
{
displayName: <StyledTeamIconContainer >{strings.general_dire}</StyledTeamIconContainer>,
field: 'dire_team',
displayFn: (row, col, field) => (field || '').split(',').map(heroId =>
displayFn: (row, col, field) => field?.map(heroId =>
(heroes[heroId] ? <HeroImage id={heroId} key={heroId} style={{ width: '50px' }} alt="" /> : null)),
},
];
Expand Down

0 comments on commit d71df19

Please sign in to comment.