From af66ded49cc5aed1e96618e6cc30a455d3ca5c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Bail=C3=A3o?= Date: Tue, 19 Sep 2023 12:08:07 +0100 Subject: [PATCH] fix: cleaned some code --- .../src/contexts/DemandContextProvider.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demand-capacity-mgmt-frontend/src/contexts/DemandContextProvider.tsx b/demand-capacity-mgmt-frontend/src/contexts/DemandContextProvider.tsx index b92a78bd..8e2497ec 100644 --- a/demand-capacity-mgmt-frontend/src/contexts/DemandContextProvider.tsx +++ b/demand-capacity-mgmt-frontend/src/contexts/DemandContextProvider.tsx @@ -53,8 +53,9 @@ const DemandContextProvider: React.FC> = (props) => setDemandProps(result); } catch (error) { console.error('Error fetching demands:', error); + console.log(demands) } - }, [demands]); + }, []); useEffect(() => { fetchDemandProps();