fix(tradein/v2): гейтить PDF-кнопку на hasEstimate (#2081 M4) (#2332)
All checks were successful
Deploy Trade-In / changes (push) Successful in 10s
Deploy Trade-In / test (push) Has been skipped
Deploy Trade-In / build-browser (push) Has been skipped
Deploy Trade-In / build-backend (push) Has been skipped
Deploy Trade-In / build-frontend (push) Successful in 1m56s
Deploy Trade-In / deploy (push) Successful in 42s
All checks were successful
Deploy Trade-In / changes (push) Successful in 10s
Deploy Trade-In / test (push) Has been skipped
Deploy Trade-In / build-browser (push) Has been skipped
Deploy Trade-In / build-backend (push) Has been skipped
Deploy Trade-In / build-frontend (push) Successful in 1m56s
Deploy Trade-In / deploy (push) Successful in 42s
This commit is contained in:
parent
308eeac214
commit
793234cff1
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