From 0c9930d8f7b0f71527d467992acbfe7c8663b117 Mon Sep 17 00:00:00 2001 From: gabrielb Date: Wed, 20 May 2026 12:51:09 -0300 Subject: [PATCH] =?UTF-8?q?fix(certidao):=20corrigir=20reinicializa=C3=A7?= =?UTF-8?q?=C3=A3o=20do=20documento=20com=20base=20na=20autentica=C3=A7?= =?UTF-8?q?=C3=A3o=20do=20usu=C3=A1rio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/portal/painel.vue | 3 ++- src/pages/servicos/certidao.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/portal/painel.vue b/src/pages/portal/painel.vue index 07929f0..be74bb5 100644 --- a/src/pages/portal/painel.vue +++ b/src/pages/portal/painel.vue @@ -68,7 +68,8 @@ const acesRapidos = [ ] function formatarMoeda(valor) { - return new Intl.NumberFormat('pt-BR', { style: 'currency', currency: 'BRL' }).format(valor ?? 0) + const n = Number(valor ?? 0) + return new Intl.NumberFormat('pt-BR', { style: 'currency', currency: 'BRL' }).format(Number.isNaN(n) ? 0 : n) } const iconeAtividade = { diff --git a/src/pages/servicos/certidao.vue b/src/pages/servicos/certidao.vue index 3c337ba..8c842ae 100644 --- a/src/pages/servicos/certidao.vue +++ b/src/pages/servicos/certidao.vue @@ -66,7 +66,7 @@ async function emitir() { } function reiniciar() { - documento.value = '' + documento.value = isAuthenticated.value ? docUsuarioLogado.value : '' resultado.value = null mensagemErro.value = '' etapa.value = 'formulario'