Skip to content

Commit

Permalink
fix: optional location properties on processing experience rules
Browse files Browse the repository at this point in the history
  • Loading branch information
abbaseya committed Jun 7, 2024
1 parent 7f52245 commit 1ff5c9b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions packages/data/src/data-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,20 +296,20 @@ export class DataManager implements DataManagerInterface {
MESSAGES.LOCATION_NOT_RESTRICTED
);
}
}
if (!locationMatched) {
this._loggerManager?.debug?.(
'DataManager.matchRulesByField()',
MESSAGES.LOCATION_NOT_MATCH,
this._mapper({
locationProperties: locationProperties,
[experience?.locations
? 'experiences[].variations[].locations'
: 'experiences[].variations[].site_area']:
experience?.locations || experience?.site_area || ''
})
);
return null;
if (!locationMatched) {
this._loggerManager?.debug?.(
'DataManager.matchRulesByField()',
MESSAGES.LOCATION_NOT_MATCH,
this._mapper({
locationProperties: locationProperties,
[experience?.locations
? 'experiences[].variations[].locations'
: 'experiences[].variations[].site_area']:
experience?.locations || experience?.site_area || ''
})
);
return null;
}
}

// Check audience rules against visitorProperties
Expand Down

0 comments on commit 1ff5c9b

Please sign in to comment.