aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorSamarth Agarwal <samarth.agarwal@mail.utoronto.ca>2019-03-29 20:40:11 +0000
committerSamarth Agarwal <samarth.agarwal@mail.utoronto.ca>2019-03-29 20:40:11 +0000
commit0d0c5c5fe387cfe1a71b1620f6a73243f053a1d3 (patch)
tree530670509ea3668564c596cfa47f7c31396b6e13 /web
parenta062626028fb80b5ab6b61af65d88ca9b7140243 (diff)
Changed null to undefined.
Diffstat (limited to 'web')
-rw-r--r--web/public/javascripts/map.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/public/javascripts/map.js b/web/public/javascripts/map.js
index 33b0ed6..abb988a 100644
--- a/web/public/javascripts/map.js
+++ b/web/public/javascripts/map.js
@@ -42,7 +42,7 @@ function plotPointsOnMap(points) {
// show details about point
// e is the event info
function showDetails(e) {
- if(currPoint !== null) {
+ if(currPoint !== undefined) {
if (currPoint.feature.geometry.status === "new") {
currPoint._icon.src = '../assets/blue-icon.png';
}