only show waypoint description if provided

This commit is contained in:
liamcottle
2024-03-18 22:55:10 +13:00
parent f8fc4ad3e1
commit 8ff999b236

View File

@ -1553,7 +1553,7 @@
function getTooltipContentForWaypoint(waypoint) {
var tooltip = `<b>${waypoint.name}</b>` +
`<br/>${waypoint.description}` +
(waypoint.description ? `<br/>${waypoint.description}` : '') +
`<br/><br/>Expires: ${moment(new Date(waypoint.expire * 1000)).fromNow()}` +
`<br/>Lat/Lng: ${waypoint.latitude}, ${waypoint.longitude}`;