diff --git a/tradein-mvp/frontend/src/components/trade-in/v2/HeroBar.tsx b/tradein-mvp/frontend/src/components/trade-in/v2/HeroBar.tsx index 10cd3e3b..45d2e4e5 100644 --- a/tradein-mvp/frontend/src/components/trade-in/v2/HeroBar.tsx +++ b/tradein-mvp/frontend/src/components/trade-in/v2/HeroBar.tsx @@ -81,7 +81,7 @@ export default function HeroBar({ hasEstimate, onOpenInfo, }: HeroBarProps) { - const pdfHref = pdfDownloadHref(estimateId); + const pdfHref = hasEstimate ? pdfDownloadHref(estimateId) : null; // A downloadable report exists ⇔ the estimate is ready ⇒ the PDF button is the // filled/primary CTA (M4). Otherwise it stays a disabled outline. const pdfFilled = Boolean(pdfHref);