Skip to content

Commit

Permalink
Sync to DEV: Ensuring shipping value is returned as a number type in …
Browse files Browse the repository at this point in the history
…DL (#255)

* Updating purchase event  DL with new requirements

* Adding condition to only update DL when cart flow is membership

* Adding nullish checks on item values

* changing item_name and product_type values

* Ensuring shipping returns as a number type
  • Loading branch information
pgilmore-phi authored Oct 23, 2024
1 parent 2d02414 commit 4ef1344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/thank-you/thank-you.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default async function decorate() {
affiliation: '24petwatch',
value: summary.totalDueToday ?? '',
tax: summary.salesTaxes ?? '',
shipping: totalShipping ? totalShipping.toFixed(2) : '0.00',
shipping: totalShipping ? Number(totalShipping) : 0,
currency: currencyValue,
payment_type: paymentMethod,
product_type: productTypes.join(', '),
Expand Down

0 comments on commit 4ef1344

Please sign in to comment.