Skip to content

Commit

Permalink
Merge pull request #5375 from vuestorefront/fix-adding-to-cart
Browse files Browse the repository at this point in the history
Fix adding to cart
  • Loading branch information
filrak committed Jan 7, 2021
2 parents bde1e74 + b34669c commit 574e37e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/core/docs/contributing/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
- change `useUserBillingFactory`, `useUserShippingFactory` and `useWishlistFactory` to return composable, move `setWishlist` inside of composable ([5350](https://github.com/vuestorefront/vue-storefront/pull/5350))
- optimize loading of fonts and their stylesheets from Google Fonts and introduce lazy hydration to improve performance ([#5326](https://github.com/DivanteLtd/vue-storefront/pull/5326))
- added missing `i18n` tags ([#5337](https://github.com/vuestorefront/vue-storefront/issues/5337))
- fix adding to cart button on product page ([#5375](https://github.com/vuestorefront/vue-storefront/pull/5375))


## 2.1.1-rc.1
- updated version of nuxt composition-api
Expand Down
2 changes: 1 addition & 1 deletion packages/core/nuxt-theme-module/theme/pages/Product.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
:disabled="loading"
:canAddToCart="stock > 0"
class="product__add-to-cart"
@click="addItem(product, parseInt(qty))"
@click="addItem({ product, quantity: parseInt(qty) })"
/>
<SfButton data-cy="product-btn_save-later" class="sf-button--text desktop-only product__save">
{{ $t('Save for later') }}
Expand Down

0 comments on commit 574e37e

Please sign in to comment.