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