Open EAHYoder opened 2 years ago
Front End Functionality: -Disable the "-" minus button when quantity is equal to 1. This means that after an item is added to cart, the user can only reduce quantity to equal one and MUST use the "remove item" button to completely remove the item from their cart.
Back End Functionality: -This shouldn't be necessary due to how the FE prevents updating quantity of a Shopping Item to values less than 1, but we set this minimum at the model level as well.
make min in database for shopping items qty.
on front end make it so decremend doesn't make call to thunk if current qty is 0.
if qty is reduced to 0, remove the item from the cart?