Skip to content

Commit

Permalink
PR correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Chu committed Sep 22, 2023
1 parent f44ab78 commit 61fcfbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,12 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
});

if (this._client) {
this._client.onReady().then(() => {
this.isClientReady = true;
});

this.dataReadyPromise = Promise.all([this.userPromise, this._client.onReady()]).then(
([userResult, clientResult]) => {
this.isClientReady = true;
this.isReadyPromiseFulfilled = true;

const bothSuccessful = userResult.success && clientResult.success;
Expand Down

0 comments on commit 61fcfbd

Please sign in to comment.