Clarify fuel savings comparison labels
This commit is contained in:
@@ -76,7 +76,7 @@ struct WidgetMockScreen: View {
|
||||
let location = FuelStore.loadLocation().map { Coordinate(lat: $0.lat, lng: $0.lng) }
|
||||
// 5 miles — the widget config's default Distance. WidgetDistance itself
|
||||
// lives in the widget target, so the preview mirrors its default here.
|
||||
let radiusKM = 5 * 1.60934
|
||||
let radiusKM = 5 * FuelSavingsCalculator.kilometresPerMile
|
||||
let all = FuelStore.loadStations()
|
||||
let selling = all.filter { station in
|
||||
guard station.prices[fuel] != nil else { return false }
|
||||
|
||||
Reference in New Issue
Block a user