Skip to content

Branch L9-Start wrong values in inStock() #22

@amouratoglou

Description

@amouratoglou

Hey guys, great tutorial!!

I have noticed that L9-Start , which should have the finished code of L8, on main.js line 30 it doesn't have the right value on the computed property inStock(). It is set to look for the property image
instead of quantity

This might be confusing and frustrating for some users that need to compare their code with finished code and also, doesn't allow starting the lesson with fully working code.

https://github.com/Code-Pop/Intro-to-Vue-3/tree/L9-start

Current code:

        inStock() {
            return this.variants[this.selectedVariant].image
        }

Correct code:

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

Is there any way to contribute to the repo?

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions