Set errors to null rather than deleting when validating user email addresses
This commit is contained in:
parent
971dcf4129
commit
d313e4858c
|
@ -48,7 +48,7 @@
|
|||
if (email) {
|
||||
const res = emailValidator(email)
|
||||
if (res === true) {
|
||||
delete userData[index].error
|
||||
userData[index].error = null
|
||||
} else {
|
||||
userData[index].error = res
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue