Created
April 14, 2018 15:08
-
-
Save emilyruby/f48cd2c3c50ef421e482018e30467989 to your computer and use it in GitHub Desktop.
Code for the HandleRange function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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