Closest mode: deltas vs the CLOSEST station (signed +X.Xp/-X.Xp), not the nationwide cheapest; baseline = sortedStations.first

This commit is contained in:
FuelBoard Contributor
2026-08-11 20:04:29 +01:00
parent 3bc795317a
commit 2ca1274b8f
3 changed files with 22 additions and 13 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ struct StationsView: View {
@Binding var selectedFuel: FuelType
@Binding var sortMode: SortMode
@Binding var stationLimit: Int
let cheapestPrice: Double?
let baselinePrice: Double?
let location: Coordinate?
let favouriteIDs: Set<String>
var onToggleFavourite: (FuelStation) -> Void = { _ in }
@@ -110,7 +110,7 @@ struct StationsView: View {
station: station,
fuel: selectedFuel,
location: location,
cheapestPrice: cheapestPrice,
baselinePrice: baselinePrice,
isTopResult: index == 0,
isFavourite: favouriteIDs.contains(station.id),
onToggleFavourite: { onToggleFavourite(station) }