Skip to content

Commit

Permalink
Add temporary fix to bug where cells' field incorrectly doesn't updat…
Browse files Browse the repository at this point in the history
…e due to #55
  • Loading branch information
bytewife committed Sep 8, 2022
1 parent a9c7a59 commit 9910b8c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/GameLoop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,12 @@ export function GameLoop() {

setGameOverVisibility(false);

// Temporary fix for lingering hasMatched cells. See Github issue #55.
setBoardCellMatrix(boardCellMatrix.map(row => { return row.map(cell => {
cell.hasMatched = false;
return cell;
})}));

setCountdownVisibility(true);
timestamps.countdownStartTime = performance.now();
stateHandler.send("START");
Expand Down

0 comments on commit 9910b8c

Please sign in to comment.