mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
fixed SAP efficiency metric
This commit is contained in:
parent
12edb94247
commit
a1385bd164
1 changed files with 3 additions and 2 deletions
|
|
@ -80,7 +80,6 @@ export function ReportingClientArea({
|
|||
// ----------------------------------------
|
||||
// Build overlay for Dashboard Summary cards
|
||||
// ----------------------------------------
|
||||
console.log("scenarioData", scenarioData);
|
||||
|
||||
const scenarioOverlay = scenarioData
|
||||
? {
|
||||
|
|
@ -109,6 +108,7 @@ export function ReportingClientArea({
|
|||
// ----------------------------------------
|
||||
// Financial drawer values (from API)
|
||||
// ----------------------------------------
|
||||
console.log("scenarioData", scenarioData);
|
||||
const scenarioFinancial = scenarioData
|
||||
? {
|
||||
totalCost: scenarioData.total_cost,
|
||||
|
|
@ -116,7 +116,8 @@ export function ReportingClientArea({
|
|||
funding: scenarioData.total_funding,
|
||||
costPerSap:
|
||||
scenarioData.total_cost > 0
|
||||
? scenarioData.total_cost / scenarioData.avg_sap
|
||||
? scenarioData.gross_per_unit /
|
||||
(scenarioData.avg_sap - (baseline.averages.avg_sap ?? 0))
|
||||
: 0,
|
||||
costPerCo2:
|
||||
scenarioData.total_cost > 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue