clear victory flag on restart

This commit is contained in:
Kevin Ngo
2018-10-19 16:27:38 -07:00
parent 1992faa5d2
commit f89d29a5f7
2 changed files with 16 additions and 7 deletions

View File

@@ -56,7 +56,7 @@ AFRAME.registerComponent('beat-loader', {
const data = this.data;
// Start playing.
if (!oldData.challengeId && data.challengeId) {
if (!oldData.challengeId && data.challengeId && this.beatData) {
this.processBeats();
return;
}