diff --git a/CHANGELOG.md b/CHANGELOG.md index 17466b59..6628d967 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [Unreleased] +### Changed +- Use `cartIndex` to correctly update items quantity on cart. ## [2.14.3] - 2019-03-28 ### Fixed diff --git a/react/components/ProductQuantityStepper.js b/react/components/ProductQuantityStepper.js index 06a9bb0d..1f47574a 100644 --- a/react/components/ProductQuantityStepper.js +++ b/react/components/ProductQuantityStepper.js @@ -66,6 +66,7 @@ class ProductQuantityStepper extends Component { const { sku: { itemId: id }, seller = {}, + cartIndex, } = product try { await updateItems([ @@ -73,6 +74,7 @@ class ProductQuantityStepper extends Component { id, quantity, seller: seller.sellerId, + index: cartIndex, }, ]) } catch (err) {