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:
parent
6f7a6e1288
commit
b5c7695344
@ -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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user