// Set back to false the variable that allows to automatically refresh the consent (deletes and recreates the account)
// Set back to false the variable that allows to automatically refresh the consent (deletes and recreates the account)
dispatch(setShouldRefreshConsent(false))
dispatch(setShouldRefreshConsent(false))
},[dispatch])
},[dispatch])
...
@@ -39,12 +36,12 @@ const GrdfFormOAuth = ({
...
@@ -39,12 +36,12 @@ const GrdfFormOAuth = ({
[endOAuth,onSuccess]
[endOAuth,onSuccess]
)
)
constisWaiting=status===WAITING
constisWaiting=status==='waiting'
useEffect(()=>{
useEffect(()=>{
if (shouldRefreshConsent){
if (shouldRefreshConsent){
// If user has selected accept button on Expired consent modal, his account has been deleted on KonnectorViewerCard, such as his consent (for GRDF), then automatically launch oauth connection flow
// If user has selected accept button on Expired consent modal, his account has been deleted on KonnectorViewerCard, such as his consent (for GRDF), then automatically launch oauth connection flow