Skip to content

Instantly share code, notes, and snippets.

@emilyruby
Created April 14, 2018 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emilyruby/f48cd2c3c50ef421e482018e30467989 to your computer and use it in GitHub Desktop.
Save emilyruby/f48cd2c3c50ef421e482018e30467989 to your computer and use it in GitHub Desktop.
Code for the HandleRange function
handleRange = (data) => {
for (var i = 0; i < data.beacons.length; i++) {
if (this.state.activeChallenge && data.beacons[i].uuid === this.state.activeChallenge.BeaconIDs[0]) {
this.solvedChallenge();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment