1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00

Render the ranks in the right fucking order

This commit is contained in:
Daniel Barber 2016-12-10 23:16:14 +00:00
parent 6f7a6e1288
commit b5c7695344
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -24,7 +24,7 @@ class ChessBoard extends React.Component {
const { store } = this.props;
const rank = this.getBoard()[rankId];
return Object.keys(rank).map((fileId) => {
return Object.keys(rank).sort().map((fileId) => {
return (
<ChessBoardSquare
file={fileId}