When adding cart items always create copy of product first.

This commit is contained in:
2020-07-19 18:05:04 +02:00
parent 0ef676ba98
commit 800bbf808e

View File

@@ -60,7 +60,7 @@ export default {
}, },
methods: { methods: {
addItemToCart() { addItemToCart() {
store.dispatch('cartModule/addItemToCart', this.product); store.dispatch('cartModule/addItemToCart', { ...this.product });
} }
} }
} }