Created
November 8, 2018 12:10
-
-
Save cbrannen9a/23a23ae133a1fb57c1cb92a346c22f87 to your computer and use it in GitHub Desktop.
Partial formValidation for addressForm
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
export const formValidator = (validation, area) => { | |
if (area === 'addressForm') { | |
return !validation.firstName | |
|| !validation.lastName | |
|| !validation.address1 | |
|| !validation.city | |
|| !validation.zip | |
|| !validation.country | |
} | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment