File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -242,16 +242,14 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
242
242
this . _client = optimizely . createInstance ( configWithClientInfo ) ;
243
243
this . isClientReady = ! ! this . getOptimizelyConfig ( ) ;
244
244
this . isUsingSdkKey = ! ! configWithClientInfo . sdkKey ;
245
- console . log ( 'I am in the constructor' , this . isClientReady , this . isUsingSdkKey ) ;
245
+
246
246
if ( this . _client ) {
247
247
const clientReadyPromise = this . _client . onReady ( ) ;
248
248
249
249
this . clientAndUserReadyPromise = Promise . all ( [ userReadyPromise , clientReadyPromise ] ) . then (
250
250
( [ userResult , clientResult ] ) => {
251
251
this . isClientReady = clientResult . success ;
252
252
this . isUserReady = userResult . success ;
253
- console . log ( 'isClientReady' , this . isClientReady ) ;
254
- console . log ( 'isUserReady' , this . isUserReady ) ;
255
253
const clientAndUserReady = this . isReady ( ) ;
256
254
this . clientAndUserReadyPromiseFulfilled = true ;
257
255
@@ -384,7 +382,7 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
384
382
}
385
383
386
384
public async setUser ( userInfo : UserInfo ) : Promise < void > {
387
- // If user id is not present and ODP is explicitly off, user promise will be pending
385
+ // If user id is not present and ODP is explicitly off, user promise will be pending until setUser is called again with proper user id
388
386
if ( userInfo ?. id === null && this . odpExplicitlyOff ) {
389
387
return ;
390
388
}
You can’t perform that action at this time.
0 commit comments