Skip to content

Commit

Permalink
Merge pull request #798 from hargata/Hargata/796
Browse files Browse the repository at this point in the history
fix mileage not included.
  • Loading branch information
hargata authored Jan 10, 2025
2 parents bf3df72 + f7e0052 commit 4778656
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Models/GasRecord/GasRecordViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public class GasRecordViewModel
public List<string> Tags { get; set; } = new List<string>();
public List<ExtraField> ExtraFields { get; set; } = new List<ExtraField>();
public List<UploadedFiles> Files { get; set; } = new List<UploadedFiles>();
public bool IncludeInAverage { get { return MilesPerGallon > 0 || (!IsFillToFull && !MissedFuelUp); } }
public bool IncludeInAverage { get { return MilesPerGallon > 0 || (!IsFillToFull && !MissedFuelUp) || (Mileage == default && !MissedFuelUp); } }
}
}

0 comments on commit 4778656

Please sign in to comment.