diff --git a/src/app/components/building-passport/ValuationImpactComponent.tsx b/src/app/components/building-passport/ValuationImpactComponent.tsx index 9f902f8..636565d 100644 --- a/src/app/components/building-passport/ValuationImpactComponent.tsx +++ b/src/app/components/building-passport/ValuationImpactComponent.tsx @@ -87,12 +87,11 @@ export default function ValuationImpactComponent({ setFundingModalIsOpen(true); } - function renderCurrency(value: number | null) { - return value ? ( - `£${formatNumber(value)}` - ) : ( - Not available - ); + function formatPercent(value: number | null): string { + if (value === null || isNaN(value)) return "–"; + const percent = value * 100; + // Show no decimals if it's a whole number, otherwise 1 decimal + return Number.isInteger(percent) ? percent.toString() : percent.toFixed(1); } return ( @@ -110,7 +109,9 @@ export default function ValuationImpactComponent({ {/* After Retrofit Valuation */}