diff --git a/src/components/Consumption/ConsumptionView.tsx b/src/components/Consumption/ConsumptionView.tsx index 85f4974ae82ef52973fa2abaff8f45171ac5a3e4..472d24dbf9a9716e00b91c280bd8343853f9d105 100644 --- a/src/components/Consumption/ConsumptionView.tsx +++ b/src/components/Consumption/ConsumptionView.tsx @@ -170,6 +170,7 @@ const ConsumptionView = ({ fluidType }: { fluidType: FluidType }) => { useEffect(() => { let subscribed = true const expiredConsents: FluidType[] = [] + // TODO only electricity can have expired consent error -> refactor this for of loop for (const fluid of fluidStatus) { const error = fluid.connection.triggerState?.last_error if (error && getKonnectorUpdateError(error) === 'error_update_oauth') { diff --git a/src/locales/fr.json b/src/locales/fr.json index ffd234efa3aa4d842772cd45e769c9675a728bbf..97034d1694b04c00b8cab72be5aca4e9bf76ed66 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -851,16 +851,13 @@ }, "consent_outdated": { "title": { - "0": "Votre autorisation pour afficher vos données d’électricité a expiré", - "2": "Votre autorisation pour afficher vos données de gaz a expiré" + "0": "Votre autorisation pour afficher vos données d’électricité a expiré" }, "text1": { - "0": "Veuillez re-donner votre consentement pour la transmission et la reconnexion de vos données ENEDIS à Ecolyo.", - "2": "Veuillez re-donner votre accord pour que GRDF nous transmette vos données de consommation." + "0": "Veuillez re-donner votre consentement pour la transmission et la reconnexion de vos données ENEDIS à Ecolyo." }, "text2": { - "0": "Souhaitez-vous renouveler votre accord dès maintenant pour un an\u00a0?", - "2": "Voulez-vous donner votre accord sur votre compte GRDF maintenant\u00a0?" + "0": "Souhaitez-vous renouveler votre accord dès maintenant pour un an\u00a0?" }, "later": "Plus tard", "go": "J'y vais",