From 4b22344e7225b052d35ef0eda92d18665fd0ca41 Mon Sep 17 00:00:00 2001 From: Kendrick Chan Date: Thu, 16 Jul 2020 15:00:50 +0800 Subject: [PATCH] Minor cleanup #424 --- public/assets/js/map_mqtt.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/public/assets/js/map_mqtt.js b/public/assets/js/map_mqtt.js index 1a35abc3..00474c6f 100644 --- a/public/assets/js/map_mqtt.js +++ b/public/assets/js/map_mqtt.js @@ -129,7 +129,6 @@ class MapEventHandler { var lat = parseFloat(pl_split[0]); var lng = parseFloat(pl_split[1]); - console.log(this.dashmap.rider_availability); var display_marker = true; if (this.dashmap.rider_availability.hasOwnProperty(chan_split[1])) { if (!this.dashmap.rider_availability[chan_split[1]]) { @@ -140,8 +139,8 @@ class MapEventHandler { console.log('rider not in availability check'); } - // TODO: cache rider availability status and check before displaying icon - // NOTE: code is already above, need to make it into a function and call it here + // TODO: cache rider availability (available vs active jo) status and check before displaying icon + // NOTE: we really should fix our terms since available can mean many things if (display_marker) { this.dashmap.putRiderAvailableMarker(chan_split[1], lat, lng); }