1
0
Fork 0
mirror of synced 2024-07-07 15:25:52 +12:00

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 67ca09293e
commit 026fd13b41

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
}