From 19e75f964758c2e6630b72de0c6f60251c56fbb4 Mon Sep 17 00:00:00 2001 From: Simon Date: Wed, 8 Feb 2023 11:24:24 +0100 Subject: [PATCH] format properly --- frontend/src/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(