From 793234cff126f670cde4ff7e25d29858d446cf58 Mon Sep 17 00:00:00 2001 From: lekss361 Date: Fri, 3 Jul 2026 22:16:00 +0000 Subject: [PATCH] =?UTF-8?q?fix(tradein/v2):=20=D0=B3=D0=B5=D0=B9=D1=82?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=20PDF-=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D1=83?= =?UTF-8?q?=20=D0=BD=D0=B0=20hasEstimate=20(#2081=20M4)=20(#2332)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tradein-mvp/frontend/src/components/trade-in/v2/HeroBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);