fixed unit cost for gas.

This commit is contained in:
DESKTOP-T0O5CDB\DESK-555BD
2024-01-08 15:13:26 -07:00
parent 26012bf27a
commit 2a0f884e89

View File

@@ -311,7 +311,7 @@ namespace CarCareTracker.Controllers
Cost = currentObject.Cost,
DeltaMileage = 0,
MilesPerGallon = 0,
CostPerGallon = (currentObject.Cost / currentObject.Gallons)
CostPerGallon = (currentObject.Cost / convertedConsumption)
});
}
previousMileage = currentObject.Mileage;