diff --git a/src/components/Konnector/KonnectorViewerCard.tsx b/src/components/Konnector/KonnectorViewerCard.tsx index 1099621b9d20d66909083666f12594b06b8ec1c0..6d5173501660464d72404eb411cf2c0237cbd403 100644 --- a/src/components/Konnector/KonnectorViewerCard.tsx +++ b/src/components/Konnector/KonnectorViewerCard.tsx @@ -272,19 +272,13 @@ const KonnectorViewerCard = ({ /> ) } - - if (isGRDFWaitingForConsent) return - - return <Connection fluidType={currentFluidStatus.fluidType} /> }, [ account, - currentFluidStatus.fluidType, currentFluidStatus.status, fluidSlug, fluidState, fluidType, handleAccountDeletion, - isGRDFWaitingForConsent, isUpdating, showOfflineData, t, @@ -479,13 +473,12 @@ const KonnectorViewerCard = ({ trigger, ]) - // if (isGRDFWaitingForConsent) return - return ( <div className="konnector-section-root"> - {isDisconnected && - // Why render accordion details without accordion ? - getConnectionCard()} + {isDisconnected && ( + <Connection fluidType={currentFluidStatus.fluidType} /> + )} + {!isDisconnected && ( <Accordion expanded={showConnectionDetails} @@ -531,7 +524,6 @@ const KonnectorViewerCard = ({ </AccordionDetails> </Accordion> )} - {/* Why render this if !isDisconnected => isConnected. Might be necessary */} <KonnectorModal open={openModal} isUpdating={isUpdating}