Skip to content

Commit 1ed165c

Browse files
committed
change to dispatch in button in GameScreen
1 parent 18c5d5b commit 1ed165c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/src/components/GameScreen.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const GameScreen = ({ inputValue }) => {
2929
<div key={index}>
3030
<p>{action.description}</p>
3131
<button
32-
onClick={onNextDirection()}>
32+
onClick={() => dispatch(games.actions.setGameStatus())}>
3333
{action.direction}
3434
</button>
3535
</div>

0 commit comments

Comments
 (0)