gray-mueller / gray-mueller/home-delivery-app-using-node-js

Enatega Customer Application: Cart Already Showing Items in it When Logging in as a New User.

Open
#138 0 comments 0 reactions 0 assignees View on GitHub
bug Enatega Multivendor Admin Dashboard enhancement good first issue High Priority
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug
When a new user logs into the app for the first time, the cart is already displaying two items that were not added by the user. This causes confusion and could lead to incorrect orders being placed.
### To Reproduce
Steps to reproduce the behavior:

1. Create a new user account.
2. Log in using the newly created credentials.
3. Navigate to the cart section.
4. Observe that two items are already present in the cart.

### Expected behavior
The cart should be empty for a newly created user unless items were intentionally preloaded by design.

**Smartphone (please complete the following information):**

> Device: [e.g. Iphone 12]
> OS: [e.g. iOS]
> Browser [e.g. Application]
> Version [e.g. Latest]

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with a newly created account, then trace the customer application's cart initialization and login flow to find where the two items are introduced. Confirm that a first-time user's cart is empty after login and verify that intentionally preloaded carts, if supported, still behave as designed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.