We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 184ea75 commit 23d2c84Copy full SHA for 23d2c84
Loop/Views/Insulin Delivery Log/InsulinDeliveryLogViewModel.swift
@@ -239,7 +239,7 @@ class InsulinDeliveryLogViewModel {
239
}
240
241
private func fetchLastAutoBolus(doses: [DoseEntry]) -> DatedQuantity? {
242
- guard let lastAutoBolusDose = doses.last(where: { $0.automatic == true }) else {
+ guard let lastAutoBolusDose = doses.last(where: { $0.type == .bolus && $0.automatic == true }) else {
243
return nil
244
245
0 commit comments