Skip to content

Enatega Web App: Clear Cart Modal Showing with Empty Cart when adding a product to cart. #1590

@mat-32191

Description

@mat-32191

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.

Screenshots

Enatega Multivendor - Google Chrome 2025-09-04 11-52-23.zip

Desktop (please complete the following information):

  • OS: [e.g. Windows ]
  • Browser [e.g. chrome]
  • Version [e.g. Latest]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions