diff --git a/lib/react/main.jsx b/lib/react/main.jsx index 27bfc78..605d82f 100644 --- a/lib/react/main.jsx +++ b/lib/react/main.jsx @@ -68,7 +68,9 @@ var App = React.createClass({ this.updateTitle(); - socket.on('stateChange', {state} => { + socket.on('stateChange', data => { + let state = data.state; + if (state.from === 'gathering' && state.to === 'election' && this.thisGatherer()) { @@ -165,9 +167,6 @@ var App = React.createClass({ -