From 663b6eb225e756f1ceb80cd959464955cb21af4a Mon Sep 17 00:00:00 2001
From: Bastien Dumont <bdumont@grandlyon.com>
Date: Thu, 11 Apr 2024 13:54:16 +0200
Subject: [PATCH] chore: fix fluidType type error

---
 src/components/Konnector/KonnectorViewerCard.tsx | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/components/Konnector/KonnectorViewerCard.tsx b/src/components/Konnector/KonnectorViewerCard.tsx
index 14f9c4f71..fcbdb43fb 100644
--- a/src/components/Konnector/KonnectorViewerCard.tsx
+++ b/src/components/Konnector/KonnectorViewerCard.tsx
@@ -62,7 +62,7 @@ import './konnectorViewerCard.scss'
 
 interface KonnectorViewerCardProps {
   showOfflineData: boolean
-  fluidType: FluidType
+  fluidType: Exclude<FluidType, FluidType.MULTIFLUID>
 }
 
 const KonnectorViewerCard = ({
@@ -98,10 +98,9 @@ const KonnectorViewerCard = ({
     [client]
   )
 
-  const lastDataDate =
-    fluidType !== FluidType.MULTIFLUID && currentFluidStatus.lastDataDate
-      ? currentFluidStatus.lastDataDate.toLocaleString() + fluidType
-      : fluidType
+  const lastDataDate = currentFluidStatus.lastDataDate
+    ? currentFluidStatus.lastDataDate.toLocaleString() + fluidType
+    : fluidType
 
   const iconType = getParamPicto(currentFluidStatus.fluidType)
 
-- 
GitLab