Skip to content

Commit c23636b

Browse files
yfrancisgreghuels
authored andcommitted
Add prefix to allocation key for overrides for clarity
1 parent 8d74403 commit c23636b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/client/eppo-client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,11 +963,12 @@ export default class EppoClient {
963963
const flagEvaluationDetailsBuilder = this.newFlagEvaluationDetailsBuilder(flagKey);
964964
const overrideVariation = this.overridesStore?.get(flagKey);
965965
if (overrideVariation) {
966+
const overrideAllocationKey = 'override-' + overrideVariation.key;
966967
const flagEvaluationDetails = flagEvaluationDetailsBuilder
967968
.setMatch(
968969
0,
969970
overrideVariation,
970-
{ key: overrideVariation.key, splits: [], doLog: false },
971+
{ key: overrideAllocationKey, splits: [], doLog: false },
971972
null,
972973
undefined,
973974
)

0 commit comments

Comments
 (0)