Skip to content

Commit

Permalink
fixed React warning about missing list keys
Browse files Browse the repository at this point in the history
  • Loading branch information
ldgit committed Sep 9, 2018
1 parent 4392878 commit b3517c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/UltimateGame.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class UltimateGame extends React.Component {
function renderTimeTravelButton(onClickHandler, boardsObject, moveNumber) {
const description = moveNumber === 0 ? 'Go to game start' : `Go to move ${moveNumber}`;
return (
<li>
<li key={moveNumber}>
<button type="button" onClick={() => onClickHandler(moveNumber)}>{description}</button>
</li>
);
Expand Down

0 comments on commit b3517c9

Please sign in to comment.