Skip to content

fixed bug in StateContext that changed order of items in cart when updating quantities#48

Open
deedeedev wants to merge 1 commit into
adrianhajdin:mainfrom
deedeedev:fix_setcartitems_bug
Open

fixed bug in StateContext that changed order of items in cart when updating quantities#48
deedeedev wants to merge 1 commit into
adrianhajdin:mainfrom
deedeedev:fix_setcartitems_bug

Conversation

@deedeedev

Copy link
Copy Markdown

As you suggested in the youtube tutorial (at 2:31:39) i fixed the problem with the cart items changing order. I just used the map function on the cartItems array, thus leaving the order of the items unchanged.

@vercel

vercel Bot commented Jul 12, 2022

Copy link
Copy Markdown

Someone is attempting to deploy a commit to a Personal Account owned by @adrianhajdin on Vercel.

@adrianhajdin first needs to authorize it.

@ojongfalon

Copy link
Copy Markdown

It didn't work

@MatVD

MatVD commented Oct 17, 2022

Copy link
Copy Markdown

It works great for me. Thanks

@thegera4

Copy link
Copy Markdown

It works for me too. Thank you for sharing this.

@blakebdavies

Copy link
Copy Markdown

This solutions worked for me too, thank you!

@SixPalms3-2

Copy link
Copy Markdown

This works for me. Thanks for the contribution!

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.

7 participants