Skip to content

Commit 3fe4230

Browse files
ODP integration error resolve by removing unnecessary qualified segment fetching
1 parent 3389cd6 commit 3fe4230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
364364
}
365365

366366
public async fetchQualifiedSegments(options?: optimizely.OptimizelySegmentOption[]): Promise<boolean> {
367-
if (this.odpExplicitlyOff) {
367+
if (this.odpExplicitlyOff || !this._client?.getProjectConfig()?.odpIntegrationConfig?.integrated) {
368368
return true;
369369
}
370370

0 commit comments

Comments
 (0)