diff --git a/Loop/Managers/LoopDataManager.swift b/Loop/Managers/LoopDataManager.swift index aac8e72500..23eebc80f3 100644 --- a/Loop/Managers/LoopDataManager.swift +++ b/Loop/Managers/LoopDataManager.swift @@ -126,6 +126,19 @@ final class LoopDataManager { self.insulinEffect = nil + self.notify(forChange: .bolus) + } + }, + NotificationCenter.default.addObserver( + forName: .InsulinDeliveryStoreCacheDidChange, + object: doseStore.insulinDeliveryStore, + queue: OperationQueue.main + ) { (note) in + self.dataAccessQueue.async { + self.logger.default("Received notification of insulin delivery store cache changing") + + self.insulinEffect = nil + self.notify(forChange: .bolus) } }