Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cart - cancel edit mode wipes out everything #498

Open
pettinarip opened this issue May 20, 2022 · 2 comments
Open

Cart - cancel edit mode wipes out everything #498

pettinarip opened this issue May 20, 2022 · 2 comments

Comments

@pettinarip
Copy link
Contributor

How to reproduce:

  1. Open the cart with items in it
  2. Click on "Edit"
  3. Click on "Cancel"
  4. The cart is empty now
bug.mp4

Expected
When you click Cancel, you should see the initial state of the cart.

@pettinarip
Copy link
Contributor Author

Currently working on it. Please assign it to myself if possible.

@pettinarip
Copy link
Contributor Author

I've checked what is going on here and it's related to #420 specially this comment.

When a user clicks on Cancel, the Cart fallback to the committed cart state. The problem is that that committed cart state is supposed to live in Gun DB. So, if for some reason, that data is not possible to be fetched we will have this error.

auryn-macmillan pushed a commit that referenced this issue Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants