diff --git a/src/Constants.tsx b/src/Constants.tsx index 8e4c256..ad7dcef 100644 --- a/src/Constants.tsx +++ b/src/Constants.tsx @@ -4,6 +4,7 @@ export const BACKGROUND_IMAGE_URL = "//cdn.jsdelivr.net/npm/three-globe/example/img/night-sky.png"; export const GEOJSON_URL = "https://raw.githubusercontent.com/nvkelso/natural-earth-vector/master/geojson/ne_110m_admin_0_countries.geojson"; -export const CASES_API = "https://covid3d-backend.now.sh"; +export const CASES_API = + "https://raw.githubusercontent.com/wobsoriano/covid3d/master/data.json"; export const FLAG_ENDPOINT = "https://corona.lmao.ninja/assets/img/flags"; diff --git a/src/Globe.tsx b/src/Globe.tsx index e85969c..dc05bca 100644 --- a/src/Globe.tsx +++ b/src/Globe.tsx @@ -79,10 +79,10 @@ async function getCases() { dates = Object.keys(countries.India); - updateCounters(); - updatePolygonsData(); + await updateCounters(); + await updatePolygonsData(); - updatePointOfView(); + await updatePointOfView(); } function updateCounters() {