diff --git a/src/app/components/portfolio/SummaryBox.tsx b/src/app/components/portfolio/SummaryBox.tsx index cefa459..067f840 100644 --- a/src/app/components/portfolio/SummaryBox.tsx +++ b/src/app/components/portfolio/SummaryBox.tsx @@ -9,7 +9,6 @@ interface SummaryBoxProps { budget: number | null; totalCost: number | null; co2EquivalentSavings: number | null; - totalWorkHours: number | null; propertyValuationIncrease: number | null; energySavings: number | null; energyCostSavings: number | null; @@ -44,9 +43,6 @@ function SummaryBox({ scenarios, numProperties }: SummaryBoxProps) { const [energySavingsFormatted, setEnergySavingsFormatted] = useState( formatKwh(defaultScenario.energySavings) ); - const [estimatedDurationFormatted, setEstimatedDurationFormatted] = useState( - convertDaysToWorkingWeeks(defaultScenario.labourDays) - ); const handleScenarioChange = (scenarioId: string) => { setSelectedScenarioId(Number(scenarioId)); @@ -70,13 +66,14 @@ function SummaryBox({ scenarios, numProperties }: SummaryBoxProps) { formatCo2(selectedScenario.co2EquivalentSavings) ); setEnergySavingsFormatted(formatKwh(selectedScenario.energySavings)); - setEstimatedDurationFormatted( - convertDaysToWorkingWeeks(selectedScenario.labourDays) - ); }; function formatMoney(amount: number | null) { - return amount === null ? "£0" : "£" + formatNumber(amount); + if (amount === 0) { + return "-"; + } + + return amount === null ? "-" : "£" + formatNumber(amount); } function formatBudget(budget: number | null) { @@ -131,12 +128,6 @@ function SummaryBox({ scenarios, numProperties }: SummaryBoxProps) { {totalCostFormatted} - - Estimated Duration - - {estimatedDurationFormatted} - - Total properties {numProperties} diff --git a/src/app/portfolio/[slug]/(portfolio)/page.tsx b/src/app/portfolio/[slug]/(portfolio)/page.tsx index 409ecdf..748ca2e 100644 --- a/src/app/portfolio/[slug]/(portfolio)/page.tsx +++ b/src/app/portfolio/[slug]/(portfolio)/page.tsx @@ -45,7 +45,6 @@ export default async function Page({ budget: performance.budget, totalCost: performance.cost, co2EquivalentSavings: performance.co2EquivalentSavings, - totalWorkHours: performance.totalWorkHours, propertyValuationIncrease: performance.propertyValuationIncrease, energySavings: performance.energySavings, energyCostSavings: performance.energyCostSavings, @@ -61,7 +60,6 @@ export default async function Page({ budget: portfolio.budget, totalCost: portfolio.cost, co2EquivalentSavings: portfolio.co2EquivalentSavings, - totalWorkHours: portfolio.totalWorkHours, propertyValuationIncrease: portfolio.propertyValuationIncrease, energySavings: portfolio.energySavings, energyCostSavings: portfolio.energyCostSavings,