From 5337f18df3a1af0d0ca30ae1120b686177bab30d Mon Sep 17 00:00:00 2001 From: Bastien Dumont <bdumont@grandlyon.com> Date: Wed, 3 Apr 2024 14:36:09 +0200 Subject: [PATCH] remove renew consent for grdf --- src/components/Consumption/ConsumptionView.tsx | 1 + src/locales/fr.json | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/Consumption/ConsumptionView.tsx b/src/components/Consumption/ConsumptionView.tsx index 85f4974ae..472d24dbf 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 ffd234efa..97034d169 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", -- GitLab