stage bugfix

This commit is contained in:
Antti Pilto 2016-08-14 00:17:35 +03:00
parent 5f52f57971
commit ec99bf17f5

View file

@ -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 (
<div>