feat: add delay before redirection after user consent registration to improve user experience on the consent term page

This commit is contained in:
2025-12-02 10:08:08 -03:00
parent 0c507f41da
commit 8b5078de92

View File

@@ -56,7 +56,10 @@
versao: versaoTermoAtual
});
sucesso = true;
// Aguarda 6 segundos antes de redirecionar automaticamente
setTimeout(() => {
navegarDeVolta();
}, 6000);
} catch (e: unknown) {
erro = e instanceof Error ? e.message : 'Erro ao registrar consentimento';
} finally {