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