From 809941dcc8f37967a22516b1c4f7af1f3b8a82bc Mon Sep 17 00:00:00 2001
From: Ariel Costas Guerrero <ariel@costas.dev>
Date: Mon, 3 Nov 2025 10:57:14 +0100
Subject: Show distances only whne supported

---
 src/frontend/app/components/StopSheet.tsx | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

(limited to 'src/frontend/app/components/StopSheet.tsx')

diff --git a/src/frontend/app/components/StopSheet.tsx b/src/frontend/app/components/StopSheet.tsx
index 4bd75a8..8080220 100644
--- a/src/frontend/app/components/StopSheet.tsx
+++ b/src/frontend/app/components/StopSheet.tsx
@@ -7,7 +7,7 @@ import LineIcon from "./LineIcon";
 import { StopSheetSkeleton } from "./StopSheetSkeleton";
 import { ErrorDisplay } from "./ErrorDisplay";
 import { type Estimate } from "../routes/estimates-$id";
-import { type RegionId, getRegionConfig } from "../data/RegionConfig";
+import { REGIONS, type RegionId, getRegionConfig } from "../data/RegionConfig";
 import { useApp } from "../AppContext";
 import "./StopSheet.css";
 
@@ -174,9 +174,11 @@ export const StopSheet: React.FC<StopSheetProps> = ({
                               <Clock />
                               {formatTime(estimate.minutes)}
                             </div>
-                            <div className="stop-sheet-estimate-distance">
-                              {formatDistance(estimate.meters)}
-                            </div>
+                            {REGIONS[region].showMeters && (
+                              <div className="stop-sheet-estimate-distance">
+                                {formatDistance(estimate.meters)}
+                              </div>
+                            )}
                           </div>
                         </div>
                       ))}
-- 
cgit v1.3

