Skip to content

Commit

Permalink
Fix product options reactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG committed Oct 19, 2023
1 parent 3828e88 commit 898cdb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/js/components/Product/Price.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default {
computed: {
specialPrice() {
JSON.stringify(this.options) // Hack: make vue recognize reactivity within the options object
return this.calculatePrice(this.product, this.location, Object.assign({ special_price: true }, this.options))
},
Expand Down

0 comments on commit 898cdb2

Please sign in to comment.