Skip to content

Commit

Permalink
Merge pull request #254 from taoufiqaitali/patch-1
Browse files Browse the repository at this point in the history
avoid calling function twice, data already exist
  • Loading branch information
jissereitsma authored Nov 12, 2024
2 parents da8f91f + 5034d54 commit fbadec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Observer/TriggerPurchaseDataLayerEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function execute(Observer $observer)

$this->checkoutSessionDataProvider->add(
'purchase_event',
$this->purchaseEvent->setOrder($order)->get()
$purchaseEventData
);
}
}

0 comments on commit fbadec4

Please sign in to comment.