Skip to content

Commit

Permalink
Merge pull request #45 from shopgate/PI-8705-purchase-legacy-checkout
Browse files Browse the repository at this point in the history
PI-8705-purchase-legacy-checkout
  • Loading branch information
sznowicki authored May 9, 2018
2 parents e207cf3 + 2527714 commit 5fbec83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/tracking/helpers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ export const formatCartProductData = ({ product, quantity }) => ({
export const formatPurchaseData = (passedOrder) => {
// Return the passedOrder if the format is already correct
if (!passedOrder.totals && passedOrder.amount) {
return passedOrder;
return {
order: passedOrder,
};
}

const defaults = {
Expand Down

0 comments on commit 5fbec83

Please sign in to comment.