Skip to content

Commit

Permalink
update wguwucalculation
Browse files Browse the repository at this point in the history
  • Loading branch information
elpamart committed Dec 19, 2024
1 parent bd1ca16 commit 5d06491
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ export class ImpactCalculator {
tracker.startProgressInterval(progressIncrement, 50);
let rawData: SourcingRecordsWithIndicatorRawData[];
try {
rawData = await this.getImpactRawDataForAllSourcingRecords(
activeIndicators,
);
rawData =
await this.getImpactRawDataForAllSourcingRecords(activeIndicators);
tracker.stopProgressInterval();
} catch (error: any) {
tracker.stopProgressInterval();
Expand Down Expand Up @@ -392,7 +391,7 @@ export class ImpactCalculator {
const waterWithdrawalValue: number =
rawData[INDICATOR_NAME_CODES.WW] * tonnage || 0;
return (
(rawData[INDICATOR_NAME_CODES.WGUWU] * waterWithdrawalValue) /
(rawData[INDICATOR_NAME_CODES.UWU] * waterWithdrawalValue) /
(100 * rawData.production) || 0
);
},
Expand Down

0 comments on commit 5d06491

Please sign in to comment.