Skip to content

Commit

Permalink
adding label to aif-hh oms object
Browse files Browse the repository at this point in the history
  • Loading branch information
ailZhou committed Sep 12, 2024
1 parent 8e2abbf commit 2f91730
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,15 @@ const AIFHHRateArray = (
const { AIFHHPerformanceMeasureArray } = context;
const rateArrays: React.ReactElement[][] = [];
AIFHHPerformanceMeasureArray?.forEach((measure) => {
const label = measure?.[qualIndex]?.label;
//Confirm that there is at least 1 rate complete
const rate1 = !!measure?.[qualIndex]?.fields?.[2]?.value;
const rate2 = !!measure?.[qualIndex]?.fields?.[4]?.value;
const rate3 = !!measure?.[qualIndex]?.fields?.[6]?.value;
const rate =
rate1 || rate2 || rate3 ? [ComplexRateComponent(context, name)] : [];
rate1 || rate2 || rate3
? [ComplexRateComponent(context, name, label)]
: [];
rateArrays.push(rate);
});
return rateArrays;
Expand Down

0 comments on commit 2f91730

Please sign in to comment.