From 2d12b73a423278ee3265e073ff77910b330a7dd3 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 17:54:23 +0000 Subject: [PATCH] Changes Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com> --- src/routes/painel.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/routes/painel.tsx b/src/routes/painel.tsx index a69d8de..85754b3 100644 --- a/src/routes/painel.tsx +++ b/src/routes/painel.tsx @@ -84,6 +84,9 @@ function PainelLayout() { const location = useLocation(); const [mobileOpen, setMobileOpen] = useState(false); + // Atualiza queries quando o webhook gravar/alterar a assinatura + useSubscriptionRealtime(); + // Faturamento permanece acessível mesmo sem assinatura ativa // (para que o usuário possa ver o estado e assinar / gerenciar). const skipSubGuard = location.pathname.startsWith("/painel/faturamento");