Skip to content

Commit

Permalink
[FSSDK-10980] optional chain removed
Browse files Browse the repository at this point in the history
  • Loading branch information
junaed-optimizely committed Dec 24, 2024
1 parent 7713f4d commit 200da3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ class OptimizelyReactSDKClient implements ReactSDKClient {

public async setUser(userInfo: UserInfo): Promise<void> {
// 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
if (userInfo?.id === null && this.odpExplicitlyOff) {
if (userInfo.id === null && this.odpExplicitlyOff) {
return;
}
this.user = {
Expand Down

0 comments on commit 200da3a

Please sign in to comment.