Skip to content

Commit

Permalink
chore: resolve bugsnag issue in braze
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeepdsvs committed Jun 18, 2024
1 parent 04d0783 commit 64637ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v0/destinations/braze/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ function getPurchaseObjs(message, config) {
}

products.forEach((product) => {
const productId = product.product_id || product.sku;
const productId = product?.product_id || product?.sku;
const { price, quantity, currency: prodCurrencyCode } = product;
if (!isDefinedAndNotNull(productId)) {
throw new InstrumentationError(
Expand Down

0 comments on commit 64637ce

Please sign in to comment.