Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ProLoser authored Oct 9, 2024
1 parent 31a9d56 commit eefd7c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,22 +249,22 @@ export function App() {
<Dice onClick={rollDice} values={game.dice} />

<div className="bar">
{Array.from({ length: game.prison.white }, (_, index) =>
{Array.from({ length: game.prison?.white }, (_, index) =>
<Piece key={index} position={-1} color="white" />
)}
</div>
<div className="bar">
{Array.from({ length: game.prison.black }, (_, index) =>
{Array.from({ length: game.prison?.black }, (_, index) =>
<Piece key={index} position={-1} color="black" />
)}
</div>
<div className="home" onDragOver={onDragOver} onDrop={onDrop}>
{Array.from({ length: game.home.black }, (_, index) =>
{Array.from({ length: game.home?.black }, (_, index) =>
<Piece key={index} color="black" />
)}
</div>
<div className="home" onDragOver={onDragOver} onDrop={onDrop}>
{Array.from({ length: game.home.white }, (_, index) =>
{Array.from({ length: game.home?.white }, (_, index) =>
<Piece key={index} color="white" />
)}
</div>
Expand All @@ -274,4 +274,4 @@ export function App() {
</div >
</>
);
}
}

0 comments on commit eefd7c8

Please sign in to comment.