forked from TDTP/admin_transporte_frontend
fix crear usuario
parent
0e00aa4425
commit
3b1e1a2387
|
@ -19,7 +19,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function onChangeRut({ target: { value } }) {
|
function onChangeRut({ target: { value } }) {
|
||||||
const [ rut = null, dv = null ] = value.split('-')
|
const valorRut = value.replace(/[.|-]/,'');
|
||||||
|
const dv = valorRut.substring(valorRut.length -1)
|
||||||
|
const rut = valorRut.substring(0, valorRut.length -1)
|
||||||
form = { ...form, rut, dv }
|
form = { ...form, rut, dv }
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue