Skip to content

Commit e3f5743

Browse files
committed
Fix formatting of distance and GPS accuracy display for consistency
1 parent 006005d commit e3f5743

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

content/wardrive.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ function updateDistanceUi() {
753753
if (distance === null) {
754754
distanceInfoEl.textContent = "-";
755755
} else {
756-
distanceInfoEl.textContent = `${Math.round(distance)} m away`;
756+
distanceInfoEl.textContent = `${Math.round(distance)}m away`;
757757
}
758758
}
759759

@@ -819,7 +819,7 @@ function updateGpsUi() {
819819

820820
state.gpsState = "acquired";
821821
gpsInfoEl.textContent = `${lat.toFixed(5)}, ${lon.toFixed(5)} (${ageSec}s ago)`;
822-
gpsAccEl.textContent = accM ? ${Math.round(accM)} m` : "-";
822+
gpsAccEl.textContent = accM ? ${Math.round(accM)}m` : "-";
823823
}
824824

825825
// Start continuous GPS age display updates

0 commit comments

Comments
 (0)