diff --git a/src/components/Connection/GRDFConnect/GrdfWaitConsent.tsx b/src/components/Connection/GRDFConnect/GrdfWaitConsent.tsx index 27811b8135d40d8193a3221c150935a1800df71e..1a5f8def659009e32107369737a868de76f69287 100644 --- a/src/components/Connection/GRDFConnect/GrdfWaitConsent.tsx +++ b/src/components/Connection/GRDFConnect/GrdfWaitConsent.tsx @@ -9,11 +9,7 @@ import { updateFluidConnection } from 'store/global/global.slice' import { useAppDispatch, useAppSelector } from 'store/hooks' import './GrdfWaitConsent.scss' -export const GrdfWaitConsent = ({ - showRelaunch, -}: { - showRelaunch: boolean -}) => { +export const GrdfWaitConsent = () => { const { t } = useI18n() const dispatch = useAppDispatch() const { fluidStatus } = useAppSelector(state => state.ecolyo.global) @@ -62,11 +58,10 @@ export const GrdfWaitConsent = ({ <br /> <span>{t('auth.grdfgrandlyon.waiting.comeback')}</span> </div> - {showRelaunch && ( - <Button className="btnPrimary" onClick={updateKonnector}> - {t('auth.grdfgrandlyon.waiting.button_done')} - </Button> - )} + + <Button className="btnPrimary" onClick={updateKonnector}> + {t('auth.grdfgrandlyon.waiting.button_done')} + </Button> </div> ) } diff --git a/src/components/Consumption/ConsumptionView.tsx b/src/components/Consumption/ConsumptionView.tsx index 9a241c566692b4d0be35504e1a8119ee631ae9ec..75f3c0fc77aeffa740c45c6f68dbf8bff396ce5a 100644 --- a/src/components/Consumption/ConsumptionView.tsx +++ b/src/components/Consumption/ConsumptionView.tsx @@ -230,7 +230,7 @@ const ConsumptionView = ({ fluidType }: { fluidType: FluidType }) => { <FluidButtons activeFluid={fluidType} key={updateKey} /> {isWaitingForConsent ? ( - <GrdfWaitConsent showRelaunch={true} /> + <GrdfWaitConsent /> ) : ( <> {showOfflineData && (