stage bugfix
This commit is contained in:
parent
5f52f57971
commit
ec99bf17f5
|
@ -34,6 +34,11 @@ class GameContainer extends Component {
|
||||||
this.setState({stage: stage, isLocked: !this.state.isLocked});
|
this.setState({stage: stage, isLocked: !this.state.isLocked});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentWillReceiveProps() {
|
||||||
|
if(!this.state.isLocked)
|
||||||
|
this.setState({stage: 1});
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Reference in a new issue