From a5bff8522359b900b59d8519f42755e5d736fe98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Wed, 17 Jan 2024 18:12:27 +0300 Subject: [PATCH] d --- Modules/MicX/MicItem/src/MicItem.Shoulds.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/MicX/MicItem/src/MicItem.Shoulds.swift b/Modules/MicX/MicItem/src/MicItem.Shoulds.swift index cb92034..a8552cf 100644 --- a/Modules/MicX/MicItem/src/MicItem.Shoulds.swift +++ b/Modules/MicX/MicItem/src/MicItem.Shoulds.swift @@ -2,9 +2,9 @@ public extension MicItem { static func shouldResetActivity(_ c: MicItemContext) -> Bool? { if c.activityDate.isRecent, - let end = c.activityDate.value, - let now = Date() + let end = c.activityDate.value { + let now = Date() return now < end }