developer #4
@ -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 = {
|
||||
|
||||
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user