Merge pull request #7166 from Budibase/fix/add-user-validation

Set errors to null rather than deleting when validating user emails
This commit is contained in:
Martin McKeaveney 2022-08-09 10:55:11 +01:00 committed by GitHub
commit 1e77697001
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}