shopify-app-template-node
shopify-app-template-node copied to clipboard
Remove Discount button in fetch-data-with-apollo tutorial does nothing
Issue summary
"Remove Discount" like the name means, should remove the selected item from the localStorage store.
Expected behavior
when button clicked it should call the removeItem() method, which removes that item from the store using key
Actual behavior
when I click "Remove discount" button nothing happens.
Steps to reproduce the problem
- select products primary button
- chose which products to select by left clicking on them from modal
- then click "add" button
- then we our selected products got displayed in a form
- when we left click any products from that list we got redirect to a another form called "edit-product" where we can update the amount of the desired discount percentage then by clicking on "save" button for that specified item so the discount tales effect.
- but if we chose to discard we can click on "Remove discount" button so the discount wont take effect for that desired item and preferably we should be redirected to index page '/'
Reduced test case
Specifications
- Browser: firefox
- Device: VM
- Operating System: Linux