Skip to content

Commit d7e3dba

Browse files
erikdips2
authored andcommitted
Reset recommendedBolus if we have a new prediction. (#748)
This technically isn't necessary as they are updated in the same function but for consistency and not to forget during the next refactoring this is protecting the user from getting a potentially dangerous out of date recommendation.
1 parent 3f0e9c5 commit d7e3dba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Loop/Managers/LoopDataManager.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ final class LoopDataManager {
165165
fileprivate var predictedGlucose: [GlucoseValue]? {
166166
didSet {
167167
recommendedTempBasal = nil
168+
recommendedBolus = nil
168169
}
169170
}
170171
fileprivate var retrospectivePredictedGlucose: [GlucoseValue]? {

0 commit comments

Comments
 (0)