aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/app/components')
-rw-r--r--src/frontend/app/components/StopSheet.tsx10
1 files changed, 6 insertions, 4 deletions
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>
))}