fix(tradein/v2): гейтить PDF-кнопку на hasEstimate (#2081 M4) #2332
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue