Removendo chamada de metodo inexistente: onChange

This commit is contained in:
Leandro Costa 2022-02-07 08:56:39 -03:00
parent e5b268d538
commit 4cc007bde6

View file

@ -85,7 +85,7 @@ function formatarContaBancaria(txt) {
function formatarTelefone(txt) {
const soNumeros = `${txt}`.replace(/[^\d]/g, '')
if (!soNumeros) onChange(soNumeros);
if (!soNumeros) return soNumeros;
let tel = '';
if (soNumeros.length === 1) {