Skip to content

Commit

Permalink
Small dueling tree bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dbecker1 committed Apr 13, 2020
1 parent 686cf5a commit 2161d8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class DuelingShoot extends React.Component {
targetIds: targetIds,
plateOrientations: plateOrientations
}, () => {
if (this.state.plateOrientations.indexOf("left") < 0 || this.state.plateOrientations.indexOf("right") < 0) {
if (this.state.competitionStarted && (this.state.plateOrientations.indexOf("left") < 0 || this.state.plateOrientations.indexOf("right") < 0)) {
this.stopCompetition()
}
})
Expand Down

0 comments on commit 2161d8b

Please sign in to comment.