Skip to content

Commit

Permalink
Merge pull request #22 from JacobDChamberlain/clearCartOnPurchase
Browse files Browse the repository at this point in the history
clear cart on purchase
  • Loading branch information
JacobDChamberlain authored Dec 19, 2024
2 parents 4dc86b3 + e3cb826 commit 9bbbfbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/components/MerchCart/MerchCart.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export function MerchCart({ isOpen }) {
.then(data => {
// redirect to stripe checkout
if (data.url) {
clearCart();
window.location.href = data.url;
}
})
Expand Down

0 comments on commit 9bbbfbe

Please sign in to comment.