Correção no formato dos parametros de formatarValor

This commit is contained in:
Leandro Costa 2022-02-02 16:52:19 -03:00
parent 77109bf307
commit cd7b56d94f

View file

@ -81,7 +81,7 @@ function formatarContaBancaria(txt) {
return conta; return conta;
} }
function formatarValor({ valor, formato }) { function formatarValor(valor, formato) {
switch (formato) { switch (formato) {
case 'cep': return formatarCep(valor); case 'cep': return formatarCep(valor);
case 'cpf': return formatarCpf(valor); case 'cpf': return formatarCpf(valor);