From dbeb2d299d5304393868f9536bd68902624a2124 Mon Sep 17 00:00:00 2001 From: SimonFJ20 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(