From 58faded6026293b54984a747132ccb4c8bf2ee94 Mon Sep 17 00:00:00 2001 From: Mathieu Moran Date: Mon, 10 Aug 2026 03:31:55 -0400 Subject: [PATCH] fix(dashboard): parseFloat GPS coords before toFixed call Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- static/js/yaris.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/yaris.js b/static/js/yaris.js index 6b41df2..5c19a71 100644 --- a/static/js/yaris.js +++ b/static/js/yaris.js @@ -215,8 +215,8 @@ socket.on('gps_location', function(data) { LocationX.innerHTML = data[0]; LocationY.innerHTML = data[1]; - const lat = data[0]; - const lon = data[1]; + const lat = parseFloat(data[0]); + const lon = parseFloat(data[1]); if (lat != null && lon != null) { if (!map.hasLayer(mapTiles)) { mapTiles.addTo(map);