Created
April 25, 2020 14:40
-
-
Save joaovitorzv/b58c60ba477033ec7715382892aed6a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
validate={ | |
values => { | |
let errors = {}; | |
if (emailsAlreadyInUse.includes(values.email)) { | |
errors.email = 'email is already in use'; | |
} | |
return errors; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment