]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/index/notes.js
Use .present? instead of double negative to check if terms_agreed timestamp is set.
[rails.git] / app / assets / javascripts / index / notes.js
index 61067adba8ed9b2f2948482d306be64985a86d03..fd5cd3ae9288ad8ffed7e79d557a44242a0a9ae4 100644 (file)
@@ -45,8 +45,7 @@ OSM.initializeNotes = function (map) {
     } else {
       marker = L.marker(feature.geometry.coordinates.reverse(), {
         icon: noteIcons[feature.properties.status],
-        title: feature.properties.comments && feature.properties.comments[0] ?
-          feature.properties.comments[0].text : undefined,
+        title: feature.properties.comments[0].text,
         opacity: 0.8,
         clickable: true
       });