Skip to content

Commit

Permalink
Update src/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ruskin <[email protected]>
  • Loading branch information
ad-astra-via and jonnyparris authored Apr 26, 2024
1 parent c0639b3 commit 646d2c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const getEcommercePayload = (event: MCEvent) => {
.join()
payload.contents = payload.products.map((product: Product) => ({
id: product.product_id,
item_price: product.price ? product.price.toString() : '',
item_price: product.price?.toString() || '',
quantity: product.quantity,
}))
payload.num_items =
Expand Down

0 comments on commit 646d2c6

Please sign in to comment.