chore(i18n,curriculum): update translations (#42290)

This commit is contained in:
camperbot
2021-05-29 03:40:43 +09:00
committed by GitHub
parent 55c237fc89
commit f146e5221a
6 changed files with 53 additions and 52 deletions

View File

@@ -240,8 +240,11 @@ class GameOfChance extends React.Component {
this.handleClick = this.handleClick.bind(this);
}
handleClick() {
this.setState({
counter: 0 // Change this line
this.setState(prevState => {
// Complete the return statement:
return {
counter: prevState
}
});
}
render() {
@@ -280,8 +283,10 @@ class GameOfChance extends React.Component {
this.handleClick = this.handleClick.bind(this);
}
handleClick() {
this.setState({
counter: this.state.counter + 1
this.setState(prevState => {
return {
counter: prevState.counter + 1
}
});
}
render() {