You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Clear Cart modal is displayed even when the cart is empty while exploring restaurant products. When the user explores a restaurant and the cart is empty, clicking on any product still triggers the "Clear Cart" confirmation modal. The modal should only appear if the cart already contains items from another restaurant.
To Reproduce
Steps to reproduce the behavior:
Open the app/website.
Go to any restaurant.
Ensure the cart is empty.
Click on any product to add it to the cart.
Expected behavior
The "Clear Cart" modal should only appear if there are already items from a different restaurant in the cart. If the cart is empty, the product should be added directly without showing the modal.