mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 06:56:44 +00:00
Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
parent
da4d0f7a61
commit
09c5ca0c4f
1 changed files with 3 additions and 2 deletions
|
|
@ -80,10 +80,11 @@ function WelcomePage() {
|
||||||
return () => clearTimeout(t);
|
return () => clearTimeout(t);
|
||||||
}, [step]);
|
}, [step]);
|
||||||
|
|
||||||
// Se já completou o onboarding, vai direto para /painel
|
// Se já completou o onboarding E já conectou o Telegram, vai direto para /painel.
|
||||||
|
// Se ainda não conectou o Telegram, mantém o usuário aqui na etapa 3 (managed bot).
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!agent) return;
|
if (!agent) return;
|
||||||
if (agent.onboarding_completed) {
|
if (agent.onboarding_completed && agent.telegram_bot_token_vault_id) {
|
||||||
navigate({ to: "/painel", search: {} });
|
navigate({ to: "/painel", search: {} });
|
||||||
}
|
}
|
||||||
}, [agent, navigate]);
|
}, [agent, navigate]);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue