Skip to content

Commit f55c7d4

Browse files
committed
Hash flag keys before looking up
1 parent 01948c4 commit f55c7d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/eppo-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ export default class EppoClient {
942942
validateNotBlank(flagKey, 'Invalid argument: flagKey cannot be blank');
943943

944944
// Check for override early
945-
const overrideVariation = this.overridesStore?.get(flagKey);
945+
const overrideVariation = this.overridesStore?.get(getMD5Hash(flagKey));
946946
if (overrideVariation) {
947947
const configFormat = this.overridesStore?.getFormat() ?? '';
948948
const flagEvaluationDetailsBuilder = this.newFlagEvaluationDetailsBuilder(flagKey);

0 commit comments

Comments
 (0)