project_e_commerce
project_e_commerce copied to clipboard
TypeError: Cannot read properties of undefined (reading 'total_items')
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?
I also have this issue anyone know the solution?
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...
someone pls figure this out and help us lol
Visit this post: https://github.com/adrianhajdin/project_e_commerce/issues/63