Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
updates incorrect variable in update-mock-data script
Browse files Browse the repository at this point in the history
  • Loading branch information
camcash17 committed Sep 13, 2023
1 parent 4e5a17e commit b7f0ff1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/update-mock-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ async function update() {
)
const { mtPerKwHour } = regionObj
const updatedC02e = recommendation.kilowattHourSavings * mtPerKwHour
let updatingCostSavings = updatedC02e / 0.0024 // Sample cost:co2e ratio
let updatedCostSavings = updatedC02e / 0.0024 // Sample cost:co2e ratio
updatedCostSavings *= Math.floor(Math.random() * (10 - 2 + 1) + 2) // Increase magnitude
recommendation.co2eSavings = updatedC02e
recommendation.costSavings = updatingCostSavings
recommendation.costSavings = updatedCostSavings
})

fs.writeFileSync(
Expand Down

0 comments on commit b7f0ff1

Please sign in to comment.