Skip to content

Commit

Permalink
build files
Browse files Browse the repository at this point in the history
  • Loading branch information
aonawale committed Oct 21, 2024
1 parent f8b78d6 commit dd5333e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ function churnZeroPlugin() {
var _payload$traits = payload.traits,
company = _payload$traits.company,
email = _payload$traits.email,
name = _payload$traits.name,
firstName = _payload$traits.firstName,
lastName = _payload$traits.lastName;
if (typeof ChurnZero === 'undefined') return;
Expand All @@ -61,9 +60,6 @@ function churnZeroPlugin() {
if (company && company.id && email) {
ChurnZero.push(['setContact', company.id, email]);
}
if (name) {
ChurnZero.push(['setAttribute', 'account', 'Name', name]);
}
if (firstName) {
ChurnZero.push(['setAttribute', 'contact', 'FirstName', firstName]);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ function churnZeroPlugin() {
var _payload$traits = payload.traits,
company = _payload$traits.company,
email = _payload$traits.email,
name = _payload$traits.name,
firstName = _payload$traits.firstName,
lastName = _payload$traits.lastName;
if (typeof ChurnZero === 'undefined') return;
Expand All @@ -59,9 +58,6 @@ function churnZeroPlugin() {
if (company && company.id && email) {
ChurnZero.push(['setContact', company.id, email]);
}
if (name) {
ChurnZero.push(['setAttribute', 'account', 'Name', name]);
}
if (firstName) {
ChurnZero.push(['setAttribute', 'contact', 'FirstName', firstName]);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/analytics-plugin-churn-zero/src/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function churnZeroPlugin(pluginConfig = {}) {
firstScript.parentNode.insertBefore(script, firstScript);
},
identify: ({ payload, config }) => {
const { company, email, name, firstName, lastName } = payload.traits
const { company, email, firstName, lastName } = payload.traits

if (typeof ChurnZero === 'undefined') return

Expand Down

0 comments on commit dd5333e

Please sign in to comment.