Skip to content
Snippets Groups Projects
Commit 4606b402 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

update update consent

parent 31e11fc7
No related branches found
No related tags found
1 merge request!1165chore: remove error modal flashing
...@@ -54,9 +54,13 @@ const ExpiredConsentModal = ({ ...@@ -54,9 +54,13 @@ const ExpiredConsentModal = ({
}) })
) )
dispatch(setShouldRefreshConsent(true)) dispatch(setShouldRefreshConsent(true))
toggleModal()
navigate(`/consumption/${FluidType[fluidType].toLocaleLowerCase()}`)
}
if (fluidType === FluidType.GAS) {
toggleModal()
navigate(`/connect/${FluidType[fluidType].toLocaleLowerCase()}`)
} }
toggleModal()
navigate(`/consumption/${FluidType[fluidType].toLocaleLowerCase()}`)
}, [dispatch, fluidStatus, fluidType, navigate, toggleModal]) }, [dispatch, fluidStatus, fluidType, navigate, toggleModal])
return ( return (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment