Skip to content

Commit

Permalink
Merge branch 'develop' into fix/ece-button-for-price-including-tax
Browse files Browse the repository at this point in the history
  • Loading branch information
timur27 authored Dec 18, 2024
2 parents 92088b0 + efc8b58 commit 708313f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog/fix-tokenized-cart-subscription-signup-fee
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: fix: tokenized cart subscription signup fee price


Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export const transformPrice = ( price, priceObject ) => {
export const transformCartDataForDisplayItems = ( cartData ) => {
const displayItems = cartData.items.map( ( item ) => ( {
amount: transformPrice(
parseInt( item.prices.price, 10 ),
item.prices
parseInt( item.totals?.line_subtotal || item.prices.price, 10 ),
item.totals || item.prices
),
name: [
item.name,
Expand Down

0 comments on commit 708313f

Please sign in to comment.