Skip to content

Commit 7713f4d

Browse files
[FSSDK-10980] log removal + comment improvement
1 parent 8375101 commit 7713f4d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/client.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -242,16 +242,14 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
242242
this._client = optimizely.createInstance(configWithClientInfo);
243243
this.isClientReady = !!this.getOptimizelyConfig();
244244
this.isUsingSdkKey = !!configWithClientInfo.sdkKey;
245-
console.log('I am in the constructor', this.isClientReady, this.isUsingSdkKey);
245+
246246
if (this._client) {
247247
const clientReadyPromise = this._client.onReady();
248248

249249
this.clientAndUserReadyPromise = Promise.all([userReadyPromise, clientReadyPromise]).then(
250250
([userResult, clientResult]) => {
251251
this.isClientReady = clientResult.success;
252252
this.isUserReady = userResult.success;
253-
console.log('isClientReady', this.isClientReady);
254-
console.log('isUserReady', this.isUserReady);
255253
const clientAndUserReady = this.isReady();
256254
this.clientAndUserReadyPromiseFulfilled = true;
257255

@@ -384,7 +382,7 @@ class OptimizelyReactSDKClient implements ReactSDKClient {
384382
}
385383

386384
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
388386
if (userInfo?.id === null && this.odpExplicitlyOff) {
389387
return;
390388
}

0 commit comments

Comments
 (0)