Skip to content

Commit

Permalink
Update index.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung authored Jan 4, 2024
1 parent 0172b01 commit 66f7ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Records/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const matchesColumns = (field, strings) => [{
displayName: strings[`heading_${field}`],
tooltip: strings[`tooltip_${field}`],
field: 'score',
displayFn: (row, col, _field) => (row.hero_id === '' ? formatSeconds(_field) : Number(_field).toLocaleString()),
displayFn: (row, col, _field) => (!row.hero_id ? formatSeconds(_field) : Number(_field).toLocaleString()),
}, {
displayName: strings.th_match_id,
tooltip: strings.match_id,
Expand All @@ -28,7 +28,7 @@ const matchesColumns = (field, strings) => [{
displayName: strings.th_hero_id,
tooltip: strings.tooltip_hero_id,
field: 'hero_id',
displayFn: (row, col, _field) => (row.hero_id === '' ? null : displayHeroId(row, col, _field)),
displayFn: (row, col, _field) => (!row.hero_id ? null : displayHeroId(row, col, _field)),
}];

const fields = ['duration', 'kills', 'deaths', 'assists', 'gold_per_min', 'xp_per_min', 'last_hits', 'denies', 'hero_damage', 'tower_damage', 'hero_healing'];
Expand Down

0 comments on commit 66f7ce4

Please sign in to comment.