summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/v0/js/geolocation.js2
1 files changed, 1 insertions, 1 deletions
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"
}