Skip to content

Commit

Permalink
fix(aggregator): fix parseFloat ecoindex
Browse files Browse the repository at this point in the history
  • Loading branch information
titiBeOne authored Feb 19, 2024
1 parent 8dffd70 commit d96bc5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aggregator/src/ecoIndex/aggregatorService.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const readFiles = (options, ecoIndexJsonReportsFiles) => {
if (result.pages[0]) {
const page = result.pages[0];
ecoIndex += page.ecoIndex;
greenhouseGases += page.greenhouseGasesEmission;
water += page.waterConsumption;
greenhouseGases += parseFloat(page.greenhouseGasesEmission);
water += parseFloat(page.waterConsumption);
greenhouseGasesKm += page.estimatation_co2?.commentDetails?.value_km ?? 0;
waterShower += page.estimatation_water?.commentDetails?.value_shower ?? 0;
waterNumberOfVisits +=
Expand Down

0 comments on commit d96bc5e

Please sign in to comment.