Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L8 code and video change the inStock variable type. #66

Open
weisebrazil opened this issue Aug 24, 2021 · 0 comments
Open

L8 code and video change the inStock variable type. #66

weisebrazil opened this issue Aug 24, 2021 · 0 comments

Comments

@weisebrazil
Copy link

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
},
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant