Intro-to-Vue-3 icon indicating copy to clipboard operation
Intro-to-Vue-3 copied to clipboard

L8 code and video change the inStock variable type.

Open weisebrazil opened this issue 3 years ago • 0 comments

The L8 code starts with a property inStock: true and finishes with a computed value that returns an integer type.

What it could be done is the code below:

...
inStock() {
    return this.variants[this.selectedVariant].quantity > 0
},
...

weisebrazil avatar Aug 24 '21 12:08 weisebrazil