diff --git a/public/static/js/geolocation.js b/public/static/js/geolocation.js index 1c30145f1b59173bdba4fa08577a4f5c1e1ec8b4..26ca349bc7ed4ff63f019e7e506bdf73f6344e77 100644 --- a/public/static/js/geolocation.js +++ b/public/static/js/geolocation.js @@ -51,7 +51,7 @@ $(document).ready(function() { hafas = candidate.hafas, distance = candidate.distance.toFixed(1); - const node = $('<a class="tablerow" href="/s/' + eva + '?hafas=' + hafas + '"><span><i class="material-icons" aria-hidden="true">' + (parts[2] == 0 ? 'train' : 'directions') + '</i>' + name + '</span></a>'); + const node = $('<a class="tablerow" href="/s/' + eva + '?hafas=' + hafas + '"><span><i class="material-icons" aria-hidden="true">' + (hafas == '0' ? 'train' : 'directions') + '</i>' + name + '</span></a>'); node.click(function() { $('nav .preloader-wrapper').addClass('active'); });