diff --git a/package.json b/package.json index f6f9586..2bcb6c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eppo/js-client-sdk-common", - "version": "1.8.0", + "version": "1.8.1", "description": "Eppo SDK for client-side JavaScript applications (base for both web and react native)", "main": "dist/index.js", "files": [ diff --git a/src/client/eppo-client.ts b/src/client/eppo-client.ts index 7b2f042..dcdbe6b 100644 --- a/src/client/eppo-client.ts +++ b/src/client/eppo-client.ts @@ -361,7 +361,7 @@ export default class EppoClient implements IEppoClient { let holdoutVariation = null; const holdoutShard = getShard(`holdout-${subjectKey}`, subjectShards); - const matchingHoldout = holdouts.find((holdout) => { + const matchingHoldout = holdouts?.find((holdout) => { const { statusQuoShardRange, shippedShardRange } = holdout; if (isShardInRange(holdoutShard, statusQuoShardRange)) { assignedVariation = variations.find(