Skip to content

Commit 9188ecd

Browse files
committed
Display boluses with a duration longer than 5 minutes
1 parent 86ed39b commit 9188ecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loop/Managers/StatusChartsManager+LoopKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ extension StatusChartsManager {
8383
for entry in doseEntries {
8484
let time = entry.endDate.timeIntervalSince(entry.startDate)
8585

86-
if entry.type == .bolus && entry.netBasalUnits > 0 && time < .minutes(5) {
86+
if entry.type == .bolus && entry.units > 0 {
8787
let x = ChartAxisValueDate(date: entry.startDate, formatter: dateFormatter)
8888
let y = ChartAxisValueDoubleLog(actualDouble: entry.units, unitString: "U", formatter: doseFormatter)
8989

0 commit comments

Comments
 (0)