You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User Story: as a user, when I go to my cart, I should be able to remove an item from the cart
Implementation:
create a route for remove from cart that will take an artid. get the userid from session. if userid does not exist, then send the appropriate status. get the pending order for userid from order table. then remove artid from the order
create a reducer component that will dispatch a thunk. if no userid, then remove item from localstorage, and dispatch action to remove from redux also
create a remove from cart button component that calls the thunk with the artid
The text was updated successfully, but these errors were encountered:
User Story: as a user, when I go to my cart, I should be able to remove an item from the cart
Implementation:
The text was updated successfully, but these errors were encountered: