Skip to content

Commit 326b50a

Browse files
[FSSDK-10655] reason inclusion (#1027)
1 parent 55206c6 commit 326b50a

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
@@ -803,7 +803,10 @@ export class DecisionService {
803803

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

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

0 commit comments

Comments
 (0)