fix crear usuario

francisco/photos
Francisco Sandoval 2024-01-12 20:11:01 -03:00
parent 0e00aa4425
commit 3b1e1a2387
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@
}
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 }
}
</script>