diff --git a/docs/advanced/targeting.md b/docs/advanced/targeting.md index a9181b9c..3a2034a9 100644 --- a/docs/advanced/targeting.md +++ b/docs/advanced/targeting.md @@ -75,11 +75,11 @@ In your code: ```js const userDomain = userEmail.split('@').pop(); const userObject = { - identifier: this.accountInfo.id, - email: this.accountInfo.email, + identifier: '', + email: userEmail, custom: { domain: userDomain } } -return this.getValue(key, defaultValue, callback, userObject); +const value = configCatClient.getValue(key, defaultValue, callback, userObject); ``` #### Semantic version comparators