Skip to content

Commit

Permalink
πŸ› Dont clear cart on add cart items
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Nov 21, 2024
1 parent 9c11490 commit 641e316
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/store/modules/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ const actions = {
dispatch('saveBookProductShoppingCart');
},
addBookProductsToShoppingCart({ commit, dispatch }, items) {
commit(TYPES.SHOPPING_CART_REPLACE_ALL_BOOK_PRODUCT, {});
items.slice(0, BATCH_COLLECT_MAX).forEach(item => {
commit(TYPES.SHOPPING_CART_ADD_BOOK_PRODUCT, item);
});
Expand Down

0 comments on commit 641e316

Please sign in to comment.