Skip to content

Commit

Permalink
fix(app/validate-cart-items): prevent overwriting
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Apr 28, 2021
1 parent 4e54c94 commit 9b1fb13
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions @ecomplus/storefront-app/src/store/modules/checkout.js
Expand Up @@ -48,6 +48,9 @@ const validateCartItem = (item, data) => new Promise((resolve, reject) => {
delete data.body_text
delete data.inventory_records
delete data.price_change_records
if (item.picture && Object.keys(item.picture).length) {
delete data.pictures
}
Object.assign(item, data, {
_id,
price,
Expand Down

0 comments on commit 9b1fb13

Please sign in to comment.