diff --git a/src/client.ts b/src/client.ts index 8491ff4..d073f9b 100644 --- a/src/client.ts +++ b/src/client.ts @@ -240,6 +240,7 @@ class OptimizelyReactSDKClient implements ReactSDKClient { }); this._client = optimizely.createInstance(configWithClientInfo); + this.isClientReady = !!this.getOptimizelyConfig(); this.isUsingSdkKey = !!configWithClientInfo.sdkKey; if (this._client) { @@ -249,7 +250,7 @@ class OptimizelyReactSDKClient implements ReactSDKClient { ([userResult, clientResult]) => { this.isClientReady = clientResult.success; this.isUserReady = userResult.success; - const clientAndUserReady = this.isClientReady && this.isUserReady; + const clientAndUserReady = this.isReady(); this.clientAndUserReadyPromiseFulfilled = true; return {