diff --git a/src/components/Connection/GRDFConnect/GrdfConnectView.tsx b/src/components/Connection/GRDFConnect/GrdfConnectView.tsx index 8fc09abbe5803f974dc797f28e9829788032f368..0d0ae1ae879c86f447a7e6533a17c343ee437c62 100644 --- a/src/components/Connection/GRDFConnect/GrdfConnectView.tsx +++ b/src/components/Connection/GRDFConnect/GrdfConnectView.tsx @@ -42,6 +42,7 @@ export const GrdfConnectView = () => { pceConfirm: true, }) + // TODO move this in GrdfInit ? const [connect, update] = useKonnectorAuth(FluidType.GAS, { grdfAuthData: formData, }) diff --git a/src/components/Konnector/KonnectorModal.tsx b/src/components/Konnector/KonnectorModal.tsx index 75e829613132b59e821af46fee0f448d0ca61f6a..e315f39d69ebcbe1d1e4c98136772b3441d5ea35 100644 --- a/src/components/Konnector/KonnectorModal.tsx +++ b/src/components/Konnector/KonnectorModal.tsx @@ -265,8 +265,7 @@ const KonnectorModal = ({ </div> )} {error !== KonnectorError.LOGIN_FAILED && - error !== KonnectorError.TERMS_VERSION_MISMATCH && - error !== KonnectorError.CHALLENGE_ASKED && ( + error !== KonnectorError.TERMS_VERSION_MISMATCH && ( // DEFAULT CASE <div className="konnector-config"> <Icon icon={errorIcon} size={48} /> diff --git a/src/components/Konnector/KonnectorViewerCard.tsx b/src/components/Konnector/KonnectorViewerCard.tsx index 67c44349b012469e724b9d6c3e73d7364c74aa23..28a6f38d0c923d5202afdae204f7a62153b71c61 100644 --- a/src/components/Konnector/KonnectorViewerCard.tsx +++ b/src/components/Konnector/KonnectorViewerCard.tsx @@ -78,6 +78,7 @@ const KonnectorViewerCard = ({ const fluidState = currentFluidStatus.status const { konnector, account, trigger } = currentFluidStatus.connection const currentFluidName = FluidType[currentFluidStatus.fluidType].toLowerCase() + const [openModal, setOpenModal] = useState(false) const [isUpdating, setIsUpdating] = useState(false) // TODO rename to isVerifyingIdentity @@ -88,6 +89,7 @@ const KonnectorViewerCard = ({ useState<KonnectorError | null>(null) const [konnectorState, setKonnectorState] = useState<string | null>(null) const [isOutdatedData, setIsOutdatedData] = useState<number | null>(null) + const fluidService = useMemo(() => new FluidService(client), [client]) const partnersInfoService = useMemo( () => new PartnersInfoService(client),