From 60e86d043fb486ed5d221bb08683277abfc47142 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Thu, 15 Oct 2020 12:15:03 +0530 Subject: [PATCH] changed source --- src/Constants.tsx | 3 ++- src/Globe.tsx | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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() {