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} -