diff --git a/packages/snake-game-3tier/src/store/index.ts b/packages/snake-game-3tier/src/store/index.ts index 1b1b89517e..81dd54a819 100644 --- a/packages/snake-game-3tier/src/store/index.ts +++ b/packages/snake-game-3tier/src/store/index.ts @@ -7,7 +7,7 @@ class Store { map: number[][] game: Game state: SignalValue<{ map: number[][], paused: boolean }> - + constructor() { const game = new Game({ onTick: () => { @@ -19,7 +19,7 @@ class Store { this.map = map this.game = game game.start() - this.state = signal( { map: game.map, paused: false }) + this.state = signal({ map: game.map, paused: false }) } @bind