|
@@ -2,9 +2,9 @@ public extension MicItem { |
|
|
static func shouldResetActivity(_ c: MicItemContext) -> Bool? { |
|
|
static func shouldResetActivity(_ c: MicItemContext) -> Bool? { |
|
|
if |
|
|
if |
|
|
c.activityDate.isRecent, |
|
|
c.activityDate.isRecent, |
|
|
let end = c.activityDate.value, |
|
|
|
|
|
let now = Date() |
|
|
|
|
|
|
|
|
let end = c.activityDate.value |
|
|
{ |
|
|
{ |
|
|
|
|
|
let now = Date() |
|
|
return now < end |
|
|
return now < end |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|