lambertf917 / lambertf917/laundry-solution-app-react
Default food item added to the cart by default
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Description:
When accessing the cart, a default food item is automatically added without any user action. This behavior can lead to confusion or incorrect orders.
To Reproduce
Open the application.
Navigate to the cart section.
Observe the presence of a default food item already added to the cart.
Expected behavior
The cart should be empty by default unless the user explicitly adds an item.
Actual Behaviour
A default food item is pre-added to the cart automatically, even when the user has not selected anything.
Desktop (please complete the following information):
OS: Windows
Browser: Chrome
Smartphone (please complete the following information):
Device: iPhone15pro
OS: iOS17.6.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in the cart section using the listed desktop or iPhone environment, then trace where the cart is initialized when the application opens. Done means the cart remains empty until a user explicitly adds a food item, with the behavior checked in both Chrome and the reported iOS setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100