jp-quintana / react-shopping-cart

Shopping cart app built with React and Firebase. This app is a clone of https://alphaleteathletics.com.
https://flaakko-v2.web.app/
84 stars 20 forks source link

Fix Cart Modal Navigation #103

Closed jp-quintana closed 11 months ago

jp-quintana commented 11 months ago

Current Behavior: When a user adds a product variant (e.g., "white") to the cart in Product Page, then switches to view a different variant (e.g., "grey"), and finally clicks on the product variant (e.g., "white") in the cart modal, the cart modal closes as expected, but the product page does not update to show the selected variant (e.g., "white"). Instead, the product page continues to display the previously viewed variant (e.g., "grey").

Expected Behavior: Upon clicking on a product variant (e.g., "white") in the cart modal, the product page should update immediately to display the selected variant (e.g., "white").