From 84cf4f18e341cf9808c0ba6612fce73072ad1139 Mon Sep 17 00:00:00 2001 From: Pete Schwamb Date: Mon, 12 Oct 2026 09:10:06 -0500 Subject: [PATCH] Treat no pump data as no date, not the distant past Before a pump has ever communicated, the open-loop HUD read "Last device communication ran 739,902 days ago" to VoiceOver. With no date it reads "Waiting for first run". The bolus screen already treats a missing date as stale data. --- Loop/Managers/LoopDataManager.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Loop/Managers/LoopDataManager.swift b/Loop/Managers/LoopDataManager.swift index 8797bcd867..43c4dca721 100644 --- a/Loop/Managers/LoopDataManager.swift +++ b/Loop/Managers/LoopDataManager.swift @@ -1445,7 +1445,8 @@ extension LoopDataManager: BolusEntryViewModelDelegate { } var mostRecentPumpDataDate: Date? { - return doseStore.lastAddedPumpData + let date = doseStore.lastAddedPumpData + return date == .distantPast ? nil : date } func effectiveGlucoseTargetRangeSchedule(presumingMealEntry: Bool) -> GlucoseRangeSchedule? {