Skip to content

Commit

Permalink
Check product for quantity
Browse files Browse the repository at this point in the history
  • Loading branch information
Martyn Jones committed Oct 26, 2023
1 parent 9840d7f commit e615217
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const getProductFieldObject = ( product, quantity ) => {
return {
item_id: getProductId( product ),
item_name: product.name,
quantity,
quantity: product.quantity ?? quantity,
...getProductCategories( product ),
price: formatPrice(
product.prices.price,
Expand Down

0 comments on commit e615217

Please sign in to comment.