Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount () {
smartlookClient.init('071bd1e673b85c528487b73918514edbc7b978b0')
}
render () {
.subscribe(() => {
smartlookClient.init(environment.smartlookKey);
});
}
render () {
const currentUser = this.props.data.CurrentUser
let intercomUser
if (currentUser) {
intercomUser = {
user_id: currentUser._id,
email: currentUser.email,
name: currentUser.username
}
smartlookClient.tag('email', currentUser.email)
smartlookClient.tag('name', currentUser.username)
smartlookClient.tag('websiteName', 'thebrain.pro')
}
return (
<header>
</header>
render () {
const currentUser = this.props.data.CurrentUser
let intercomUser
if (currentUser) {
intercomUser = {
user_id: currentUser._id,
email: currentUser.email,
name: currentUser.username
}
smartlookClient.tag('email', currentUser.email)
smartlookClient.tag('name', currentUser.username)
smartlookClient.tag('websiteName', 'thebrain.pro')
}
return (
<header>
</header>
render () {
const currentUser = this.props.data.CurrentUser
let intercomUser
if (currentUser) {
intercomUser = {
user_id: currentUser._id,
email: currentUser.email,
name: currentUser.username
}
smartlookClient.tag('email', currentUser.email)
smartlookClient.tag('name', currentUser.username)
smartlookClient.tag('websiteName', 'thebrain.pro')
}
return (
<header>
</header>