Skip to content

Commit

Permalink
fix the issue to open all cells on click
Browse files Browse the repository at this point in the history
  • Loading branch information
ebinase committed Oct 13, 2023
1 parent a4acedb commit 50dc2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logics/board/boardActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const open = (
...board,
data: board.data.map((row) => {
return row.map((cell) => {
if (cell.id !== targetCell.id) {
if (cell.id === targetCell.id) {
return { ...targetCell, state: { type: 'opened' } };
}
return cell;
Expand Down

0 comments on commit 50dc2f9

Please sign in to comment.