From bca398b5934c30700fef6d3f9f98b2cbc565e0c1 Mon Sep 17 00:00:00 2001 From: Greg Huels Date: Mon, 10 Mar 2025 15:11:14 -0500 Subject: [PATCH] fix: bandit with no allocations incorrectly returning programmatic default --- package.json | 2 +- src/client/eppo-precomputed-client.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b4f5dd1..c3ad2e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eppo/js-client-sdk-common", - "version": "4.13.0", + "version": "4.13.1", "description": "Common library for Eppo JavaScript SDKs (web, react native, and node)", "main": "dist/index.js", "files": [ diff --git a/src/client/eppo-precomputed-client.ts b/src/client/eppo-precomputed-client.ts index 7db1436..4ca3990 100644 --- a/src/client/eppo-precomputed-client.ts +++ b/src/client/eppo-precomputed-client.ts @@ -327,7 +327,7 @@ export default class EppoPrecomputedClient { if (banditEvaluation == null) { logger.warn(`${loggerPrefix} No assigned variation. Bandit not found: ${flagKey}`); - return { variation: defaultValue, action: null }; + return { variation: this.getStringAssignment(flagKey, defaultValue), action: null }; } const assignedVariation = this.getStringAssignment(flagKey, defaultValue);