This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 329
react-graphql-client: Error message when adding product to cart #109
Comments
I've made the changes on a local branch, but I don't have rights to push branches up for this repository. |
@ryangrunest you can fork the repo and then do a PR from there |
Open
Pull Request: #110 |
To test this issue, I connected to my storefront within src/index.js, and attempted adding a product to the cart. |
enkelmedia
pushed a commit
to Obviuse/storefront-api-examples
that referenced
this issue
Jan 21, 2021
@swalkinshaw but i want to add another product in the same cart by using cart id Pls reply |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently, there's an error message when adding a product to the cart:
App.js:136 Uncaught ReferenceError: client is not defined
To fix this issue, in the addVariantToCart function within App.js, add the following:
const client = this.props.client;
and change each this.props.client to client.
The text was updated successfully, but these errors were encountered: