diff --git a/src/components/Konnector/KonnectorModalFooter.tsx b/src/components/Konnector/KonnectorModalFooter.tsx index f7466eea9e9cbc0f2d0df7b6866cf5d266ae90c2..ba4a08df754a85b3800c2b7175ce6e313cce6d98 100644 --- a/src/components/Konnector/KonnectorModalFooter.tsx +++ b/src/components/Konnector/KonnectorModalFooter.tsx @@ -60,8 +60,7 @@ const KonnectorModalFooter = ({ </Button> ) case KonnectorError.LOGIN_FAILED: - case KonnectorError.CHALLENGE_ASKED: - // INCOMPLETE CONSENT FORM - GRDF + // INCOMPLETE CONSENT FORM - GRDF // what is this comment ? return ( <Button aria-label={t('konnector_modal.accessibility.button_close')} @@ -71,6 +70,16 @@ const KonnectorModalFooter = ({ <div>{t('konnector_modal.button_try_again')}</div> </Button> ) + case KonnectorError.CHALLENGE_ASKED: + return ( + <Button + aria-label={t('konnector_modal.accessibility.button_close')} + onClick={() => handleCloseClick(state === SUCCESS_EVENT)} + className="btnPrimary" + > + <div>{t('konnector_modal.button_later')}</div> + </Button> + ) case KonnectorError.TERMS_VERSION_MISMATCH: return ( <div className="buttons"> diff --git a/src/components/Konnector/KonnectorViewerCard.tsx b/src/components/Konnector/KonnectorViewerCard.tsx index 28a6f38d0c923d5202afdae204f7a62153b71c61..43b7e6e2607bc47da4c431ced44b96619444005c 100644 --- a/src/components/Konnector/KonnectorViewerCard.tsx +++ b/src/components/Konnector/KonnectorViewerCard.tsx @@ -53,6 +53,7 @@ import { updateFluidConnection, } from 'store/global/global.slice' import { useAppDispatch, useAppSelector } from 'store/hooks' +import logApp from 'utils/logger' import { getParamPicto } from 'utils/picto' import { getKonnectorSlug } from 'utils/utils' import ConnectionNotFound from './ConnectionNotFound/ConnectionNotFound' @@ -173,7 +174,6 @@ const KonnectorViewerCard = ({ const isGlobalLoginFailed = konnectorErrorDescription === KonnectorError.LOGIN_FAILED || konnectorErrorDescription === KonnectorError.UNKNOWN_ERROR || - konnectorErrorDescription === KonnectorError.CHALLENGE_ASKED || konnectorErrorDescription === KonnectorError.CRITICAL || konnectorErrorDescription === KonnectorError.MISSING_SECRET @@ -189,6 +189,7 @@ const KonnectorViewerCard = ({ (isGlobalLoginFailed || isEnedisCodeInseeError) if (shouldDeleteAccount) { + logApp('info', `shouldDeleteAccount`) // KEEP LAST LOGIN FOR EPGL if ( fluidSlug === FluidSlugType.WATER &&