Open deepansh96 opened 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
this.variants[this.selectedVariant].image
return this.variants[this.selectedVariant].quantity
Duplicate of https://github.com/Code-Pop/Intro-to-Vue-3/pull/4
inStock() computation was returning the image
this.variants[this.selectedVariant].image
where as it should return the quantityreturn this.variants[this.selectedVariant].quantity