From 4fbc1a62d6174db04c9e1140776277eccc610a92 Mon Sep 17 00:00:00 2001
From: Bastien Dumont <bdumont@grandlyon.com>
Date: Wed, 27 Mar 2024 16:51:02 +0100
Subject: [PATCH] hide KVC

---
 src/components/Konnector/KonnectorViewerCard.tsx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/components/Konnector/KonnectorViewerCard.tsx b/src/components/Konnector/KonnectorViewerCard.tsx
index 43b7e6e26..a1c80c207 100644
--- a/src/components/Konnector/KonnectorViewerCard.tsx
+++ b/src/components/Konnector/KonnectorViewerCard.tsx
@@ -100,6 +100,7 @@ const KonnectorViewerCard = ({
   /** Derived value from store.  */
   const isDisconnected = !showOfflineData
 
+  /** If waiting for GRDF consent, do not show anything from KonnectorViewerCard */
   const isGRDFWaitingForConsent =
     fluidType === FluidType.GAS &&
     currentFluidStatus.status === FluidState.CHALLENGE_ASKED
@@ -477,6 +478,8 @@ const KonnectorViewerCard = ({
     trigger,
   ])
 
+  if (isGRDFWaitingForConsent) return
+
   return (
     <div className="konnector-section-root">
       {isDisconnected &&
-- 
GitLab