Skip to content

Commit

Permalink
Fix initialization order (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
ps2 authored Sep 20, 2024
1 parent 96c8481 commit a611867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Loop/Managers/LoopDataManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ final class LoopDataManager: ObservableObject {
self.analyticsServicesManager = analyticsServicesManager
self.carbAbsorptionModel = carbAbsorptionModel
self.usePositiveMomentumAndRCForManualBoluses = usePositiveMomentumAndRCForManualBoluses
self.automationHistory = UserDefaults.standard.automationHistory
self.publishedMostRecentGlucoseDataDate = glucoseStore.latestGlucose?.startDate
self.publishedMostRecentPumpDataDate = mostRecentPumpDataDate
self.automationHistory = UserDefaults.standard.automationHistory

// Required for device settings in stored dosing decisions
UIDevice.current.isBatteryMonitoringEnabled = true
Expand Down

0 comments on commit a611867

Please sign in to comment.