adrianhajdin / ecommerce_sanity_stripe

Modern Full Stack ECommerce Application with Stripe
https://jsmastery.pro
2.21k stars 674 forks source link

updating toggle quantity issue on addition and decrement of cart item on cart page That it goes t bottom #60

Closed saurabhcoded closed 2 months ago

saurabhcoded commented 2 years ago

I am using a for loop rather than editing the single object by using its id which is returninan me a Array with the modified object quantity ISSUE: the last code has been using the filter to separate the object and apending the toggled object at the end The issue with the last code was that we are appending the founded object to a filtered object which always comes at last. Now it's working finely the cart item remains at the same place rather than going to to the bottom on inc or dec

vercel[bot] commented 2 years ago

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

@adrianhajdin first needs to authorize it.