Skip to content

Commit eff868a

Browse files
authored
Merge branch 'master' into raju/decision_notification
2 parents 94d0252 + 326b50a commit eff868a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/core/decision_service/index.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,10 @@ export class DecisionService {
804804

805805
return this.getVariationForFeatureExperiment(op, configObj, feature, user, decideOptions, userProfileTracker).then((experimentDecision) => {
806806
if (experimentDecision.error || experimentDecision.result.variation !== null) {
807-
return Value.of(op, experimentDecision);
807+
return Value.of(op, {
808+
...experimentDecision,
809+
reasons: [...decideReasons, ...experimentDecision.reasons],
810+
});
808811
}
809812

810813
decideReasons.push(...experimentDecision.reasons);

0 commit comments

Comments
 (0)