From d52fe459b8e43b6aead05714dbc54c46687cbf27 Mon Sep 17 00:00:00 2001 From: gcarron <gcarron@grandlyon.com> Date: Thu, 1 Oct 2020 13:47:12 +0200 Subject: [PATCH] fix modal --- src/components/Home/HomeView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Home/HomeView.tsx b/src/components/Home/HomeView.tsx index f097fca20..b6a100aa3 100644 --- a/src/components/Home/HomeView.tsx +++ b/src/components/Home/HomeView.tsx @@ -38,7 +38,8 @@ const HomeView: React.FC = () => { const [isChartLoading, setChartLoading] = useState<boolean>(true) const [isIndicatorsLoading, setIndicatorsLoading] = useState<boolean>(true) const [openOldFluidDataModal, setopenOldFluidDataModal] = useState(false) - const fluidOldData: FluidType[] = [] + + const [fluidOldData] = useState<FluidType[]>([]) const updateProfileHaveSeenOldFluidModal = useCallback(async () => { const userProfileService = new UserProfileService(client) -- GitLab