fix(calendar): fix weekly calculator when event has no duration

This commit is contained in:
Francis Lachapelle committed 2021-10-18 14:09:43 -04:00
1 parent ecbdf450e3
commit e79b01ebd1
1 file changed
+2 -1
@@ -163,7 +163,8 @@
currentEndDate = [currentStartDate addTimeInterval: [firstRange duration]];
if (hasRepeatCount ||
[startDate compare: currentEndDate] == NSOrderedAscending)
[startDate compare: currentEndDate] == NSOrderedAscending ||
([startDate compare: currentEndDate] == NSOrderedSame && [firstRange duration] == 0))
{
// If the rule count is defined, stop once the count is reached.
if ([currentStartDate compare: firStart] == NSOrderedSame)