Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Manwe-777 committed Jan 7, 2024
1 parent e4105d6 commit e3d543d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/action-log-v2/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function ActionLog(props: ActionLogProps): JSX.Element {

return (
<div className="action-log-v2">
{actionLog.lines.map((line) => {
{actionLog.lines.map((line, index) => {
const LineComponent = getLineComponent(line.type);

// const nextLine = actionLog.lines[i + 1];
Expand All @@ -119,7 +119,8 @@ export default function ActionLog(props: ActionLogProps): JSX.Element {

return (
<LineComponent
key={`log-line-${line.timestamp}-${line.type}`}
// eslint-disable-next-line react/no-array-index-key
key={`log-line-${index}`}
line={line}
timeStart={actionLog.lines[1].timestamp}
players={actionLog.players}
Expand Down

0 comments on commit e3d543d

Please sign in to comment.