Skip to content

Commit

Permalink
[FSSDK-10730] isClientReady logic adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
junaed-optimizely committed Oct 2, 2024
1 parent 1197fb2 commit caad5b2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
});

this._client = optimizely.createInstance(configWithClientInfo);
this.isClientReady = !!configWithClientInfo.datafile;
this.isUsingSdkKey = !!configWithClientInfo.sdkKey;

if (this._client) {
Expand All @@ -251,7 +250,6 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
this.isClientReady = clientResult.success;
this.isUserReady = userResult.success;
const clientAndUserReady = this.isClientReady && this.isUserReady;

this.clientAndUserReadyPromiseFulfilled = true;

return {
Expand Down

0 comments on commit caad5b2

Please sign in to comment.