Code-Pop / Intro-to-Vue-3

Code for Vue Mastery's Intro to Vue 3 course:
https://www.vuemastery.com/
779 stars 3.21k forks source link

BUG: inStock() was using the wrong property #7

Open deepansh96 opened 4 years ago

deepansh96 commented 4 years ago

inStock() computation was returning the image this.variants[this.selectedVariant].image where as it should return the quantity return this.variants[this.selectedVariant].quantity

elitan commented 3 years ago

Duplicate of https://github.com/Code-Pop/Intro-to-Vue-3/pull/4