From e8437a7c362796ed81b3f6fe8a025349cf391871 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 21 Aug 2021 09:41:15 +0200 Subject: geolocation.js: Fix off-by-1000 in km distances --- static/v0/js/geolocation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/v0/js/geolocation.js b/static/v0/js/geolocation.js index 4f520b9..aba8b10 100644 --- a/static/v0/js/geolocation.js +++ b/static/v0/js/geolocation.js @@ -30,7 +30,7 @@ document.addEventListener("DOMContentLoaded", function() { note.className = "distance"; if (result.distance >= 1000) { - note.textContent = result.distance.toFixed(1) + " km" + note.textContent = (result.distance / 1000).toFixed(1) + " km" } else { note.textContent = result.distance + " m" } -- cgit v1.2.3