Skip to content

Commit

Permalink
EMBCESSMOD-5066 - Edit Service File Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TimA authored and TimA committed Apr 3, 2024
1 parent 58c7abb commit d7eabb2
Showing 1 changed file with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export class EditService {
private formCreationService: FormCreationService,
private needsAssessmentMapping: NeedsAssessmentMappingService,
private evacuationFileDataService: EvacuationFileDataService
) {}
) { }

/**
* Updates the form with latest values
Expand Down Expand Up @@ -68,13 +68,13 @@ export class EditService {
this.needsAssessmentDataService.insurance = form.get('insurance').value;
break;
case 'pets':
this.needsAssessmentDataService.pets = form.get('pets').value;
break;
this.needsAssessmentDataService.pets = form.get('pets').value;
break;
case 'family-information':
this.needsAssessmentDataService.setHouseHoldMembers(
form.get('householdMembers').value
);
break;
this.needsAssessmentDataService.setHouseHoldMembers(
form.get('householdMembers').value
);
break;
case 'identify-needs':
this.needsAssessmentDataService.setNeedsDetails(form);
break;
Expand Down Expand Up @@ -185,7 +185,7 @@ export class EditService {
break;
case 'family-information':
if (
this.needsAssessmentDataService.householdMembers.length !== 0 ) {
this.needsAssessmentDataService.householdMembers.length !== 0) {
if (path === 'verified-registration') {
form
.get('householdMembers')
Expand All @@ -207,26 +207,26 @@ export class EditService {
form.get('householdMembers').patchValue([]);
}
break;
case 'pets':
if (
this.needsAssessmentDataService.pets?.length !== 0
) {
form.get('pets').patchValue(this.needsAssessmentDataService.pets);
} else {
form.get('pets').patchValue([]);
}
break;
case 'pets':
if (
this.needsAssessmentDataService.pets?.length !== 0
) {
form.get('pets').patchValue(this.needsAssessmentDataService.pets);
} else {
form.get('pets').patchValue([]);
}
break;
case 'identify-needs':
if (
this.needsAssessmentDataService.canEvacueeProvideClothing !==
undefined &&
undefined &&
this.needsAssessmentDataService.canEvacueeProvideFood !== undefined &&
this.needsAssessmentDataService.canEvacueeProvideIncidentals !==
undefined &&
undefined &&
this.needsAssessmentDataService.canEvacueeProvideLodging !==
undefined &&
undefined &&
this.needsAssessmentDataService.canEvacueeProvideTransportation !==
undefined
undefined
) {
form
.get('canEvacueeProvideClothing')
Expand Down

0 comments on commit d7eabb2

Please sign in to comment.