Skip to content

Instantly share code, notes, and snippets.

@cbrannen9a
Created November 8, 2018 12:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cbrannen9a/23a23ae133a1fb57c1cb92a346c22f87 to your computer and use it in GitHub Desktop.
Save cbrannen9a/23a23ae133a1fb57c1cb92a346c22f87 to your computer and use it in GitHub Desktop.
Partial formValidation for addressForm
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