File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -459,7 +459,7 @@ final class DeviceDataManager {
459
459
return
460
460
}
461
461
462
- Task {
462
+ Task { @ MainActor in
463
463
if let unit = await self . healthStore. cachedPreferredUnits ( for: . bloodGlucose) {
464
464
self . displayGlucoseUnitObservable. displayGlucoseUnitDidChange ( to: unit)
465
465
self . notifyObserversOfDisplayGlucoseUnitChange ( to: unit)
Original file line number Diff line number Diff line change @@ -180,13 +180,7 @@ class OnboardingManager {
180
180
}
181
181
182
182
private func ensureHealthStoreAuthorization( _ completion: @escaping ( ) -> Void ) {
183
- getHealthStoreAuthorization { authorization in
184
- guard authorization == . notDetermined else {
185
- completion ( )
186
- return
187
- }
188
- self . authorizeHealthStore { _ in completion ( ) }
189
- }
183
+ self . authorizeHealthStore { _ in completion ( ) }
190
184
}
191
185
192
186
private func ensureBluetoothAuthorization( _ completion: @escaping ( ) -> Void ) {
You can’t perform that action at this time.
0 commit comments