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

clear the array in clearCart in store/index.js #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

arshiya-singh
Copy link

Issue

Saw that clearCart didn't actually clear the cart during checkout when "Pay with Stripe" was successful. It still had the number of items left in the cart in the Success page (see here in the tutorial).

Solution

This line clears the items array in a way that Vue3 is able to detect that change

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

Successfully merging this pull request may close these issues.

1 participant