diff --git a/app/components/Dashboard/Cards/WhatDifference.tsx b/app/components/Dashboard/Cards/WhatDifference.tsx index 261f198..c0c2d35 100644 --- a/app/components/Dashboard/Cards/WhatDifference.tsx +++ b/app/components/Dashboard/Cards/WhatDifference.tsx @@ -41,11 +41,13 @@ const Highlight: React.FC = ({ children }) => ( const Cards: React.FC = ({ household }) => { const moneySaved = Math.round(household.socialValue.moneySaved).toLocaleString(); const communityWealthDecade = Math.round(household.socialValue.communityWealthDecade).toLocaleString(); - const embodiedCarbonSavings = household.socialValue.embodiedCarbonSavings; + const embodiedCarbonSavings = household.socialValue.embodiedCarbonSavings.toFixed(1); const savingsEnergyPoundsYearly = Math.round(household.socialValue.savingsEnergyPoundsYearly).toLocaleString() const savingsToNHSPerHeadYearly = Math.round(household.socialValue.savingsToNHSPerHeadYearly).toLocaleString(); const newBuildPrice = Math.round(household.property.newBuildPrice).toLocaleString(); - const operationalCarbonSavingsYearly = household.socialValue.operationalCarbonSavingsYearly; + const operationalCarbonSavingsYearly = household.socialValue.operationalCarbonSavingsYearly.toFixed(1); + const maintenanceCost = Math.round(household.lifetime.lifetimeData[0].maintenanceCost[household.property.maintenanceLevel]).toLocaleString(); + const localJobs = household.socialValue.localJobs.toFixed(1); return
@@ -67,7 +69,7 @@ const Cards: React.FC = ({ household }) => {

per person, per year of a healthy, well-maintained home

-

If new build, the home would add £{newBuildPrice} to the local economy, and £{Math.round(household.lifetime.lifetimeData[0].maintenanceCost[household.property.maintenanceLevel]).toLocaleString()} every year, supporting {household.socialValue.localJobs} full-time-equivalent jobs in total

+

If new build, the home would add £{newBuildPrice} to the local economy, and £{maintenanceCost} every year, supporting {localJobs} full-time-equivalent jobs in total

If new build or retrofit, compared to average home