From 1efdb03916ef5f6b4faa811ffd7f42047c35c433 Mon Sep 17 00:00:00 2001
From: Romain CREY <ext.sopra.rcrey@grandlyon.com>
Date: Mon, 1 Jun 2020 11:19:41 +0200
Subject: [PATCH] fix: half hour enum

---
 .../FluidChartContainer/FluidChartContainer.tsx               | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/components/ContainerComponents/FluidChartContainer/FluidChartContainer.tsx b/src/components/ContainerComponents/FluidChartContainer/FluidChartContainer.tsx
index 276a4e1fe..679caa1b4 100644
--- a/src/components/ContainerComponents/FluidChartContainer/FluidChartContainer.tsx
+++ b/src/components/ContainerComponents/FluidChartContainer/FluidChartContainer.tsx
@@ -114,7 +114,9 @@ const FluidChartContainer: React.FC<FluidChartContainerProps> = ({
     <>
       {isLoaded ? (
         <>
-          {isMinuteBlocked && timeStep === 10 && <ActivateHalfHourLoad />}
+          {isMinuteBlocked && timeStep === TimeStep.HALF_AN_HOUR && (
+            <ActivateHalfHourLoad />
+          )}
           <div className="fc-root">
             <div className="fc-content">
               <FluidChartContent
-- 
GitLab