Skip to content

Conversation

@Dave3130
Copy link
Collaborator

@Dave3130 Dave3130 commented Dec 1, 2025

This pull request updates the behavior of the addToCart function in the CartProviderComponent. Instead of using a provided quantity or a default of 1, the function now always adds a random quantity (between 1 and 5) of the selected item to the cart.

Cart item addition logic:

  • Updated the addToCart function in CartContext.tsx to always add a random quantity (1-5) of an item to the cart, ignoring any quantity passed in.

@Dave3130 Dave3130 requested a review from a team as a code owner December 1, 2025 16:36
@Dave3130 Dave3130 changed the title [Bug] Randomize Cart Add Quantity Between 1–5 Units [Bug] [Demo App V3] Randomize Cart Add Quantity Between 1–5 Units Dec 2, 2025
@Dave3130 Dave3130 added bug Something isn't working demo-app-v3 labels Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working demo-app-v3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants