Only play music for participating gatherers fixes #10

This commit is contained in:
Chris Blanchard 2015-08-27 18:03:44 +01:00
parent 59d4b0a731
commit 397ba7aee8

View file

@ -551,8 +551,9 @@ var Gather = React.createClass({
console.log(newState) console.log(newState)
// Callbacks for new states // Callbacks for new states
if (newState === "election" && previousState === "gathering") { if (newState === "election"
console.log(soundController); && previousState === "gathering"
&& data.currentGatherer) {
soundController.playGatherMusic(); soundController.playGatherMusic();
} }
}, },