Show distances in miles (app + widget) to match the miles filter

This commit is contained in:
FuelBoard Contributor
2026-08-11 19:18:27 +01:00
parent 6eae42ff3d
commit 3953c65a65
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ struct FuelPriceWidgetView: View {
.foregroundStyle(.green)
}
if let location = entry.location {
Text(String(format: "%.1f km away", station.distanceKM(to: location.lat, lng2: location.lng)))
Text(String(format: "%.1f mi away", station.distanceKM(to: location.lat, lng2: location.lng) * 0.621371))
.font(.caption2)
.foregroundStyle(.secondary)
} else {