Skip to content

Commit 46f7a49

Browse files
committed
update progressCell for bolus display, update for dev branch
1 parent 710182e commit 46f7a49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Loop/View Controllers/StatusTableViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ final class StatusTableViewController: LoopChartsTableViewController {
247247
// If there is an existing bolus progressCell, update its dose values now in case the app is currently in the
248248
// background as otherwise these values won't get initialized and can contain stale data from some earlier bolus.
249249
if let progressCell = tableView.cellForRow(at: IndexPath(row: StatusRow.status.rawValue, section: Section.status.rawValue)) as? BolusProgressTableViewCell {
250-
progressCell.configuration = .bolusing(delivered: 0, ofTotalVolume: dose.programmedUnits)
250+
progressCell.totalUnits = dose.programmedUnits
251+
progressCell.deliveredUnits = 0
251252
}
252253
break
253254
}

0 commit comments

Comments
 (0)