From b6610a1d44878e96b7898ebafbf40f2b6b4a6560 Mon Sep 17 00:00:00 2001 From: Marion Barker Date: Mon, 11 Dec 2023 20:47:57 -0500 Subject: [PATCH] fix logic error, testflight expiration is independent of profile expiration (#2097) --- Loop/Managers/AppExpirationAlerter.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Loop/Managers/AppExpirationAlerter.swift b/Loop/Managers/AppExpirationAlerter.swift index eee1d90f4f..d5dd84518f 100644 --- a/Loop/Managers/AppExpirationAlerter.swift +++ b/Loop/Managers/AppExpirationAlerter.swift @@ -152,7 +152,7 @@ class AppExpirationAlerter { if isTestFlight, let buildDate = buildDate() { let testflightExpiration = Calendar.current.date(byAdding: .day, value: 90, to: buildDate)! - return profileExpiration < testflightExpiration ? profileExpiration : testflightExpiration + return testflightExpiration } else { return profileExpiration }