Fix user validation when pressing confirm
This commit is contained in:
parent
6cf5c7dd76
commit
6948d682fa
|
@ -65,7 +65,7 @@
|
||||||
const onConfirm = () => {
|
const onConfirm = () => {
|
||||||
let valid = true
|
let valid = true
|
||||||
userData.forEach((input, index) => {
|
userData.forEach((input, index) => {
|
||||||
valid = validateInput(input.email, index) && valid
|
valid = validateInput(input, index) && valid
|
||||||
})
|
})
|
||||||
if (!valid) {
|
if (!valid) {
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue