diff --git a/src/components/GameContainer/GameContainer.jsx b/src/components/GameContainer/GameContainer.jsx index 013d84b..ebe4134 100644 --- a/src/components/GameContainer/GameContainer.jsx +++ b/src/components/GameContainer/GameContainer.jsx @@ -34,6 +34,11 @@ class GameContainer extends Component { this.setState({stage: stage, isLocked: !this.state.isLocked}); } + componentWillReceiveProps() { + if(!this.state.isLocked) + this.setState({stage: 1}); + } + render() { return (