Skip to content

Commit

Permalink
Merge pull request #3531 from cisagov/bug/CSET-2384
Browse files Browse the repository at this point in the history
Bug/cset 2384
  • Loading branch information
randywoods authored Sep 21, 2023
2 parents 16c3eb9 + 89943a6 commit 48161f5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ export class CpgSummaryComponent implements OnInit {
*/
ngOnInit(): void {
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 48161f5

Please sign in to comment.