adrianhajdin / project_corona_tracker

This is a code repository for the corresponding YouTube video. In this tutorial, we are going to build and deploy a corona tracker application. Covered topics: React.js, Chart.js, Material UI, and much more.
https://covid19statswebsite.netlify.com/
1.46k stars 483 forks source link

Getting {TypeError: Cannot read property 'confirmed' of undefined} when i my internet is disconnected. #12

Closed itsnoormuhammad closed 4 years ago

itsnoormuhammad commented 4 years ago

when i disconnect the internet i get this do not know why see here. err

reetpriye commented 4 years ago

If you can provide me your GitHub repo link. I'll definitely try my best to solve it.

itsnoormuhammad commented 4 years ago

https://github.com/itsnoormuhammad/react-corona-app.git

Gokulnathnallaiya commented 4 years ago

They have changed the structure of api call(json object). make these changes in the App.js file. it will work fine. issue image

tejasautkar commented 4 years ago

I am also getting the same error even after making changes. I got stuck in the middle of the project due to same.

https://github.com/tejasautkar/covid-react-app.git

adrianhajdin commented 4 years ago

The data cannot be fetched from the API if there's no internet connection.