Skip to content

Commit

Permalink
Merge pull request #3533 from cisagov/bug/CSET-2384
Browse files Browse the repository at this point in the history
  • Loading branch information
jekuipers committed Sep 21, 2023
2 parents 8bcc2b7 + c7e2fb8 commit c86e55c
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -69,12 +69,14 @@ export class CpgReportComponent implements OnInit {
});

this.cpgSvc.getAnswerDistrib().subscribe((resp: any) => {
const cpgAnswerOptions = this.configSvc.config.moduleBehaviors.find(b => b.moduleName == 'CPG').answerOptions;

resp.forEach(r => {
r.series.forEach(element => {
if (element.name == 'U') {
element.name = 'Unanswered';
} else {
element.name = this.configSvc.config.answersCPG?.find(x => x.code == element.name).answerLabel;
element.name = cpgAnswerOptions?.find(x => x.code == element.name).answerLabel;
}
});
});
Expand Down

0 comments on commit c86e55c

Please sign in to comment.