From 679b96286c742e39af4426dea4c757a33fa4b955 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Thu, 8 Dec 2016 14:43:09 +0000 Subject: [PATCH] Fix problem caused by Rob --- app/components/chess-board.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components/chess-board.js b/app/components/chess-board.js index ae83ca6..2efb4a5 100644 --- a/app/components/chess-board.js +++ b/app/components/chess-board.js @@ -10,6 +10,7 @@ class ChessBoard extends React.Component { } renderFiles(rankId) { + const { store } = this.props; const rank = this.getBoard()[rankId]; return Object.keys(rank).map((fileId) => { @@ -18,7 +19,8 @@ class ChessBoard extends React.Component { file={fileId} key={fileId} rank={rankId} - square={rank[fileId]} + piece={rank[fileId]} + store={store} /> ); });