Skip to content

Need to update this line using  #54

@oldmangreg

Description

@oldmangreg

Hi, I think this

should be
let selection = newStore.cart.find(item => item.product.id === action.payload.product.id);
where action.payload.id becomes action.payload.product.id
I am new to javascript and react so I apologize if this is incorrect but this is what I came up with to get the 'Remove' button in the cart to work.

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