Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #140 from AppliedIS/bug-employername
Browse files Browse the repository at this point in the history
Added missing validation check for employer legal name.
  • Loading branch information
klinden committed Nov 15, 2016
2 parents 812f095 + ccb529e commit abb8c27
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ module.exports = function(ngModule) {


// methods for validating each section (primarily used internally)

this.validateAssurances = function() {
section = "__assurances";

Expand Down Expand Up @@ -236,6 +236,8 @@ module.exports = function(ngModule) {
this.validateEmployer = function() {
section = "__employer";

this.checkRequiredString("employer.legalName");

let hasTradeName = this.checkRequiredMultipleChoice("employer.hasTradeName");
if (hasTradeName === true) {
this.checkRequiredString("employer.tradeName");
Expand Down

0 comments on commit abb8c27

Please sign in to comment.