File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,7 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
240240 } ) ;
241241
242242 this . _client = optimizely . createInstance ( configWithClientInfo ) ;
243+ this . isClientReady = ! ! this . getOptimizelyConfig ( ) ;
243244 this . isUsingSdkKey = ! ! configWithClientInfo . sdkKey ;
244245
245246 if ( this . _client ) {
@@ -249,7 +250,7 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
249250 ( [ userResult , clientResult ] ) => {
250251 this . isClientReady = clientResult . success ;
251252 this . isUserReady = userResult . success ;
252- const clientAndUserReady = this . isClientReady && this . isUserReady ;
253+ const clientAndUserReady = this . isReady ( ) ;
253254 this . clientAndUserReadyPromiseFulfilled = true ;
254255
255256 return {
You can’t perform that action at this time.
0 commit comments