feat: add delay before redirection after user consent registration to improve user experience on the consent term page
This commit is contained in:
@@ -56,7 +56,10 @@
|
||||
versao: versaoTermoAtual
|
||||
});
|
||||
sucesso = true;
|
||||
navegarDeVolta();
|
||||
// Aguarda 6 segundos antes de redirecionar automaticamente
|
||||
setTimeout(() => {
|
||||
navegarDeVolta();
|
||||
}, 6000);
|
||||
} catch (e: unknown) {
|
||||
erro = e instanceof Error ? e.message : 'Erro ao registrar consentimento';
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user