ecommerce-shopping-cart
ecommerce-shopping-cart copied to clipboard
handelAddToCart function not found
I guess the issue is there is a typo in handelAddToCart.
yes sir, the issue is resolved thank you so much
On Sat, Jun 20, 2020 at 10:53 AM Bassir Jafarzadeh (Coding Teacher) < [email protected]> wrote:
I guess the issue is there is a typo in handelAddToCart.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/basir/ecommerce-shopping-cart/issues/9#issuecomment-646943786, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALDK4BYMOQFGPTVKIHO7RZLRXRBUHANCNFSM4OCWA4RQ .
how its resolved
change the onClick of Add to Cart button. It should be: onClick={(e) => this.props.addToCart(this.props.cartItems, product)}