developer #4

Open
gabrielb wants to merge 20 commits from developer into main
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 0c9930d8f7 - Show all commits

View File

@ -68,7 +68,8 @@ const acesRapidos = [
] ]
function formatarMoeda(valor) { 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 = { const iconeAtividade = {

View File

@ -66,7 +66,7 @@ async function emitir() {
} }
function reiniciar() { function reiniciar() {
documento.value = '' documento.value = isAuthenticated.value ? docUsuarioLogado.value : ''
resultado.value = null resultado.value = null
mensagemErro.value = '' mensagemErro.value = ''
etapa.value = 'formulario' etapa.value = 'formulario'