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 {
240
240
} ) ;
241
241
242
242
this . _client = optimizely . createInstance ( configWithClientInfo ) ;
243
+ this . isClientReady = ! ! this . getOptimizelyConfig ( ) ;
243
244
this . isUsingSdkKey = ! ! configWithClientInfo . sdkKey ;
244
245
245
246
if ( this . _client ) {
@@ -249,7 +250,7 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
249
250
( [ userResult , clientResult ] ) => {
250
251
this . isClientReady = clientResult . success ;
251
252
this . isUserReady = userResult . success ;
252
- const clientAndUserReady = this . isClientReady && this . isUserReady ;
253
+ const clientAndUserReady = this . isReady ( ) ;
253
254
this . clientAndUserReadyPromiseFulfilled = true ;
254
255
255
256
return {
You can’t perform that action at this time.
0 commit comments