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

TypeError: Cannot read properties of undefined (reading 'total_items') #60

Open
shobhan-dash opened this issue Aug 6, 2022 · 4 comments

Comments

@shobhan-dash
Copy link

image

I downloaded the source code and runned it, which works fine. But changing the env variables with my own API keys and running gives this error.
Any Idea how to resolve this issue?

@crimsoncreates
Copy link

I also have this issue anyone know the solution?

@ghost
Copy link

ghost commented Sep 7, 2022

i have been battling with this issues more than 3 hours ago, but there is something i get to observe, after console.loging my cart state, in the console, i observed, despite fetching my fetchCart function in useEffects, my website renders multiple time, like 3-4 times, while the api is still pending or fetching, i observed my my cart state, shows its return values but on api fulfillment, my cart state returned undefined...

@crimsoncreates
Copy link

someone pls figure this out and help us lol

@Uwill18
Copy link

Uwill18 commented Oct 4, 2022

Visit this post: #63

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

3 participants