notrab / react-use-cart

React hook library for managing cart state
http://npm.im/react-use-cart
Apache License 2.0
367 stars 48 forks source link

`itemTotal` calculation is incorrect #61

Closed ynnoj closed 3 years ago

ynnoj commented 3 years ago

The calculated itemTotal value doesn't update to reflect quantity manipulation.

For example, if I add an item with price: 200 increasing or decreasing the quantity of that item does not update the itemTotal value.

notrab commented 3 years ago

Fixed in #62