Skip to content

Commit e790f7c

Browse files
committed
Fix issue when activities retrieved for attribution rule
1 parent 2035829 commit e790f7c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Rule/AttributionRule.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ export class AttributionRule extends Rule {
194194
let activityTotal = 0;
195195
let firstActivity, lastActivity;
196196

197+
if(activities.length === 0) {
198+
this.logger.debug(`No activities retrieved for criteria`);
199+
continue;
200+
}
201+
197202
activityTotal = activities.length;
198203
firstActivity = activities[0];
199204
lastActivity = activities[activities.length - 1];

0 commit comments

Comments
 (0)