Skip to content

Commit 3151daf

Browse files
committed
fix: [NR-NMP-638] Display amount prop based on type
1 parent e2354f3 commit 3151daf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/views/Reporting/makeFullReport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ const generateManureCompostInventory = (
279279
: [];
280280
newRows.push([
281281
` ${manure.uniqueMaterialName}`,
282-
`${printNum(manure.annualAmount)} ${manure.manureType === ManureType.Liquid ? 'US gallons' : 'tons'}`,
282+
`${printNum(manure.manureType === ManureType.Liquid ? manure.annualAmountUSGallonsVolume! : manure.annualAmountTonsWeight!)} ${manure.manureType === ManureType.Liquid ? 'US gallons' : 'tons'}`,
283283
]);
284284
return acc.concat(newRows);
285285
}, [] as RowInput[]),

0 commit comments

Comments
 (0)