From c87fa4ca76d1b9ea1ead47993992db457ea7fac9 Mon Sep 17 00:00:00 2001 From: manik Date: Sat, 11 Apr 2020 21:40:41 +0530 Subject: [PATCH] fixed the Covid19 api call being made twice on HomePage --- components/NetworkMap/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/NetworkMap/index.js b/components/NetworkMap/index.js index f6342bd..f592121 100644 --- a/components/NetworkMap/index.js +++ b/components/NetworkMap/index.js @@ -62,7 +62,7 @@ const NetworkMap = ({ setIsLoading(false) }) .catch(err => console.log('error', err)) - }, [isLoading]) + }, []) useEffect(() => { // TODO: Figure out a way to make this do-able with patient Id search