Describe the bugThis might be more a feature request than a bug but given the fact that incorrect data is temporarily displayed to users I'm submitting it as a bug report.
If a user has items in their cart and then clicks on a payment request button on a product page, their cart is emptied and replaced with a single product. If the payment request modal is then immediately closed, the cart will still show the previous cart total.
To Reproduce
Steps to reproduce the behavior:
Create Product A ($30) and Product B ($10)
Add Product A to cart
Go to Product B
Click on a Payment Request button and then immediately cancel
Notice that the cart total on the page will still display $30 but if you go to the cart it will only contain Product B and be for $10
Expected behavior
I would expect that the cart total would be updated to reflect what it actually is. Ideally, a warning should be displayed to users letting them know that their existing cart will be emptied.
Describe the bug This might be more a feature request than a bug but given the fact that incorrect data is temporarily displayed to users I'm submitting it as a bug report.
If a user has items in their cart and then clicks on a payment request button on a product page, their cart is emptied and replaced with a single product. If the payment request modal is then immediately closed, the cart will still show the previous cart total.
To Reproduce Steps to reproduce the behavior:
Expected behavior I would expect that the cart total would be updated to reflect what it actually is. Ideally, a warning should be displayed to users letting them know that their existing cart will be emptied.
Example
https://user-images.githubusercontent.com/40762232/141973578-320deb0b-edfc-44b0-884b-100964ce1b2c.mp4
Environment (please complete the following information):