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

fixes cart items reordering #91

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

zardes42
Copy link

@zardes42 zardes42 commented Jan 3, 2023

fixes cart items reordering whenever you increase the quantity.
This method creates a copy of the cartItems array mutates the copy using the index of the product you want to mutate in the array and sets the state with the newArray.

@americanoame
Copy link

very nice explanations my friend, it helped me a lot thank you!!!

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

Successfully merging this pull request may close these issues.

None yet

2 participants