Set errors to null rather than deleting when validating user email addresses

This commit is contained in:
Andrew Kingston 2022-08-09 10:16:22 +01:00
parent 971dcf4129
commit d313e4858c
1 changed files with 1 additions and 1 deletions

View File

@ -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
}