Skip to content

Commit a611867

Browse files
authored
Fix initialization order (#709)
1 parent 96c8481 commit a611867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loop/Managers/LoopDataManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ final class LoopDataManager: ObservableObject {
183183
self.analyticsServicesManager = analyticsServicesManager
184184
self.carbAbsorptionModel = carbAbsorptionModel
185185
self.usePositiveMomentumAndRCForManualBoluses = usePositiveMomentumAndRCForManualBoluses
186+
self.automationHistory = UserDefaults.standard.automationHistory
186187
self.publishedMostRecentGlucoseDataDate = glucoseStore.latestGlucose?.startDate
187188
self.publishedMostRecentPumpDataDate = mostRecentPumpDataDate
188-
self.automationHistory = UserDefaults.standard.automationHistory
189189

190190
// Required for device settings in stored dosing decisions
191191
UIDevice.current.isBatteryMonitoringEnabled = true

0 commit comments

Comments
 (0)