Fix bug in rider availability check #424
This commit is contained in:
parent
a8b5a59ddb
commit
9e649c9d70
1 changed files with 3 additions and 1 deletions
|
|
@ -132,10 +132,12 @@ class MapEventHandler {
|
||||||
console.log(this.dashmap.rider_availability);
|
console.log(this.dashmap.rider_availability);
|
||||||
var display_marker = true;
|
var display_marker = true;
|
||||||
if (this.dashmap.rider_availability.hasOwnProperty(chan_split[1])) {
|
if (this.dashmap.rider_availability.hasOwnProperty(chan_split[1])) {
|
||||||
if (!this.dashmap.rider_availability) {
|
if (!this.dashmap.rider_availability[chan_split[1]]) {
|
||||||
console.log('NOT displaying marker for inactive rider');
|
console.log('NOT displaying marker for inactive rider');
|
||||||
display_marker = false;
|
display_marker = false;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
console.log('rider not in availability check');
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: cache rider availability status and check before displaying icon
|
// TODO: cache rider availability status and check before displaying icon
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue