safak / youtube

5.04k stars 5.47k forks source link

update cartRedux.js code (fix issue) #102

Closed darkpsinight closed 2 years ago

darkpsinight commented 2 years ago

I tested your code by adding one product with a price 30$. And then i added to cart two of the same previous product (30$ * 2 = 60 $). The total should give 90$ (30$+60$). But with your code, the result is 150$. Now with this fix, it gives 90$.