diff --git a/src/Game.js b/src/Game.js index 526ed4d..719285a 100644 --- a/src/Game.js +++ b/src/Game.js @@ -26,7 +26,7 @@ class Game extends React.Component { } squares[i] = this.props.xIsNext ? "X" : "O"; - this.props.place(this.props.stepNumber, this.props.xIsNext); + this.props.place(); this.setState({ history: history.concat([ diff --git a/src/actions.js b/src/actions.js index 4cf17c0..3e33037 100644 --- a/src/actions.js +++ b/src/actions.js @@ -2,8 +2,6 @@ export const ActionType = { PLACE: "PLACE", }; -export const place = (stepNumber, xIsNext) => ({ +export const place = () => ({ type: ActionType.PLACE, - stepNumber, - xIsNext, });