Skip to content
Snippets Groups Projects
Commit 1304a31e authored by Joni Laukka's avatar Joni Laukka
Browse files

Leaving faction now updates player role state

parent e7499898
No related branches found
No related tags found
2 merge requests!46Development to testing,!38Join game update fix
...@@ -85,6 +85,7 @@ export default class GameView extends React.Component { ...@@ -85,6 +85,7 @@ export default class GameView extends React.Component {
}) })
.then(res => { .then(res => {
alert(res.message); alert(res.message);
this.getPlayerRole(this.state.gameInfo.id);
}) })
.catch(error => console.log(error)); .catch(error => console.log(error));
}; };
......
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