Skip to content

Commit

Permalink
error fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cmavelis committed Mar 12, 2019
1 parent 0da823b commit 8e0b317
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class Game extends React.Component {

Game.propTypes = {
generateNewSeed: PropTypes.func.isRequired,
wordFile: PropTypes.arrayOf(PropTypes.string).isRequired,
wordFile: PropTypes.object.isRequired,
randomSeed: PropTypes.string.isRequired,
leaderMode: PropTypes.bool.isRequired,
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/Board.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Board extends React.Component {
return (
<div className="game-board">
{cardIDs.map((row, i) => (
<div className="board-row" key={row.id}>
<div className="board-row" key={i}>
{row.map((card, j) => this.renderCard(i * 5 + j))}
</div>
))}
Expand Down

0 comments on commit 8e0b317

Please sign in to comment.