Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cart quantity reduce method concatenates #156

Closed
Dennis-The14th-web opened this issue Oct 15, 2022 · 2 comments
Closed

Cart quantity reduce method concatenates #156

Dennis-The14th-web opened this issue Oct 15, 2022 · 2 comments

Comments

@Dennis-The14th-web
Copy link

The cart-quantity concatenates prev, curr, and initial values instead or summing and returning the total.

@Dennis-The14th-web
Copy link
Author

I set the qty from redux actions before dispatch as a Number data type. The hooks make it return the qty as a string which, with the reduce method, it concatenates. Dispatch qty:qty. Thanks for this wonderful information the upload component for me is highly conceptual. Thank you, sir.

@Dennis-The14th-web
Copy link
Author

Screen Shot 2022-10-15 at 2 41 34 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant