Fix title updates

This commit is contained in:
Chris Blanchard 2016-04-18 23:11:18 +01:00
parent 88f6af2f43
commit 4f2a9d78db

View file

@ -285,9 +285,9 @@ const GatherPage = React.createClass({
let gather = this.currentGather();
if (gather && this.state.updateTitle) {
document.title = `NSL Gathers (${gather.gatherers.length}/${gather.teamSize * 2})`;
return;
} else {
document.title = "NSL Gathers";
}
document.title = "NSL Gathers";
},
toggleEventsPanel(event) {
@ -369,7 +369,7 @@ const GatherPage = React.createClass({
this.setState({
currentGather: gather.type
});
this.updateTitle();
setTimeout(this.updateTitle, 200);
},
render() {