aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/routes/home.tsx
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-12-12 16:52:05 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-12-12 16:52:05 +0100
commit9d38db605e25febc81f8832f4756cbb6cfc010b8 (patch)
treecc8209a567790431cc758028234e9c96ed4696b8 /src/frontend/app/routes/home.tsx
parente7eb57bf492617f2b9be88d46c1cc708a2c17af4 (diff)
Fix formatting and errors
Diffstat (limited to 'src/frontend/app/routes/home.tsx')
-rw-r--r--src/frontend/app/routes/home.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/frontend/app/routes/home.tsx b/src/frontend/app/routes/home.tsx
index 7c13da6..e97659a 100644
--- a/src/frontend/app/routes/home.tsx
+++ b/src/frontend/app/routes/home.tsx
@@ -120,9 +120,9 @@ export default function StopList() {
const a =
Math.sin(dLat / 2) * Math.sin(dLat / 2) +
Math.cos(toRadians(lat1)) *
- Math.cos(toRadians(lat2)) *
- Math.sin(dLon / 2) *
- Math.sin(dLon / 2);
+ Math.cos(toRadians(lat2)) *
+ Math.sin(dLon / 2) *
+ Math.sin(dLon / 2);
const c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
return R * c;
};
@@ -342,9 +342,9 @@ export default function StopList() {
)}
{!loading && data
? (userLocation
- ? sortedAllStops.slice(0, 6)
- : sortedAllStops
- ).map((stop) => <StopItem key={stop.stopId} stop={stop} />)
+ ? sortedAllStops.slice(0, 6)
+ : sortedAllStops
+ ).map((stop) => <StopItem key={stop.stopId} stop={stop} />)
: null}
</ul>
</div>