Skip to content

Commit

Permalink
fix: logic in Promise.all user & client readiness
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Chu committed Apr 1, 2024
1 parent 286838f commit 425de33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
this.clientAndUserReadyPromiseFulfilled = true;

return {
success: true, // needs to always be true
message: this.isReady() ? 'Client and user are both.' : 'Client or user did not become ready.',
success: this.isReady(),
message: this.isReady() ? 'Client and user are both ready.' : 'Client or user did not become ready.',
};
}
);
Expand Down

0 comments on commit 425de33

Please sign in to comment.