diff --git a/frontend/src/main.ts b/frontend/src/main.ts
index aef62cb..6c692b1 100644
--- a/frontend/src/main.ts
+++ b/frontend/src/main.ts
@@ -31,9 +31,9 @@ function displayMousePosition(element: HTMLParagraphElement, mouse: Position) {
}
function displayCoords(element: HTMLParagraphElement, coords: Coordinate) {
- element.innerHTML = `Coords: ${coords.longitude.toFixed(
- 3,
- )}, ${coords.latitude.toFixed(3)}
`;
+ const longitude = coords.longitude.toFixed(3);
+ const latitude = coords.latitude.toFixed(3);
+ element.innerHTML = `Coords: ${longitude}, ${latitude}
`;
}
function displayZipCode(