Skip to content

Commit

Permalink
mixpanel minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
utsabc committed Jul 26, 2021
1 parent 94af828 commit 60719a3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions integrations/Mixpanel/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,8 @@ class Mixpanel {
const { message } = rudderElement;
const eventIncrements = this.eventIncrements;
const propIncrements = this.propIncrements;
const event = get(message, "event").toLowerCase();
const revenue = get(message, "properties.revenue");
const superProps = pick(props, this.superProperties);
const event = get(message, "event");
const revenue = get(message, "properties.revenue") || get(message, "properties.total");
const sourceName = this.sourceName;
let props = get(message, properties);
props = inverseObjectArrays(props);
Expand Down Expand Up @@ -318,11 +317,6 @@ class Mixpanel {
} else {
window.mixpanel.track(event, props);
}

// register super properties if present
if (isNotEmpty(superProps)) {
window.mixpanel.register(superProps);
}
}

/**
Expand Down

0 comments on commit 60719a3

Please sign in to comment.