Skip to content

Commit ea0f897

Browse files
committed
Add prefix to allocation key for overrides for clarity
1 parent 89a52c9 commit ea0f897

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
@@ -948,11 +948,12 @@ export default class EppoClient {
948948
const flagEvaluationDetailsBuilder = this.newFlagEvaluationDetailsBuilder(flagKey);
949949
const overrideVariation = this.overridesStore?.get(flagKey);
950950
if (overrideVariation) {
951+
const overrideAllocationKey = 'override-' + overrideVariation.key;
951952
const flagEvaluationDetails = flagEvaluationDetailsBuilder
952953
.setMatch(
953954
0,
954955
overrideVariation,
955-
{ key: overrideVariation.key, splits: [], doLog: false },
956+
{ key: overrideAllocationKey, splits: [], doLog: false },
956957
null,
957958
undefined,
958959
)

0 commit comments

Comments
 (0)