Skip to content

Commit de3baaa

Browse files
[FSSDK-11529] condition adjustment
1 parent 78eaa41 commit de3baaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/optimizely/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ export default class Optimizely extends BaseService implements Client {
652652

653653
let featureEnabled = decision.getFeatureEnabledFromVariation(decisionObj);
654654

655-
if (decisionSource === DECISION_SOURCES.FEATURE_TEST) {
655+
if (decisionSource === DECISION_SOURCES.FEATURE_TEST || decisionSource === DECISION_SOURCES.HOLDOUT) {
656656
sourceInfo = {
657657
experimentKey: experimentKey,
658658
variationKey: variationKey,
@@ -661,6 +661,7 @@ export default class Optimizely extends BaseService implements Client {
661661

662662
if (
663663
decisionSource === DECISION_SOURCES.FEATURE_TEST ||
664+
decisionSource === DECISION_SOURCES.HOLDOUT ||
664665
(decisionSource === DECISION_SOURCES.ROLLOUT && projectConfig.getSendFlagDecisionsValue(configObj))
665666
) {
666667
this.sendImpressionEvent(decisionObj, feature.key, userId, featureEnabled, attributes);
@@ -1503,6 +1504,7 @@ export default class Optimizely extends BaseService implements Client {
15031504
if (
15041505
!options[OptimizelyDecideOption.DISABLE_DECISION_EVENT] &&
15051506
(decisionSource === DECISION_SOURCES.FEATURE_TEST ||
1507+
decisionSource === DECISION_SOURCES.HOLDOUT ||
15061508
(decisionSource === DECISION_SOURCES.ROLLOUT && projectConfig.getSendFlagDecisionsValue(configObj)))
15071509
) {
15081510
this.sendImpressionEvent(decisionObj, key, userId, flagEnabled, attributes);

0 commit comments

Comments
 (0)