Skip to content
Snippets Groups Projects
Commit a2f9198e authored by Taneli Riihimäki's avatar Taneli Riihimäki
Browse files

Fixed the game change bug!

parent 8325736c
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,6 @@ class GameList extends Component { ...@@ -40,7 +40,6 @@ class GameList extends Component {
startTracking() { startTracking() {
this.intervalID = setInterval(() => { this.intervalID = setInterval(() => {
console.log("Valittu peli: " + this.state.selectedGame);
console.log( console.log(
"Nyt träkätää nim birusti peliä: " + this.state.selectedGame.name "Nyt träkätää nim birusti peliä: " + this.state.selectedGame.name
); );
...@@ -72,7 +71,7 @@ class GameList extends Component { ...@@ -72,7 +71,7 @@ class GameList extends Component {
selectedValue={this.state.selectedGame} selectedValue={this.state.selectedGame}
onValueChange={(selectedGame, itemIndex) => { onValueChange={(selectedGame, itemIndex) => {
clearInterval(this.intervalID); clearInterval(this.intervalID);
this.setState({ selectedGame, tracking: "false" }); this.setState({ selectedGame, tracking: false });
}} }}
> >
{this.state.games.map(game => ( {this.state.games.map(game => (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment