From 25b969183c434a71e95dcb3129901617ae4340f2 Mon Sep 17 00:00:00 2001 From: Mattsson <111893710+mattssonn@users.noreply.github.com> Date: Tue, 8 Sep 2026 01:32:21 +0200 Subject: [PATCH] fix(invoices): wrap the Visa PDF handler so the click event is not read as options (#2403) The review pass on #2401 gave previewPDF an options parameter but left the button's onClick as a bare reference, so TypeScript saw a MouseEvent flowing into { asDraft?: boolean } and the production build failed (Core Build and the Vercel deploy on 4e8d649b2). Prod stayed on the previous deploy. Refs #2399 Claude-Session: https://claude.ai/code/session_01RZiqSg2v6XrtaFZyyRK88b Co-authored-by: Claude Fable 5.1 --- app/(dashboard)/invoices/[id]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/(dashboard)/invoices/[id]/page.tsx b/app/(dashboard)/invoices/[id]/page.tsx index fa55051e..22adc2d5 100644 --- a/app/(dashboard)/invoices/[id]/page.tsx +++ b/app/(dashboard)/invoices/[id]/page.tsx @@ -1778,7 +1778,7 @@ export default function InvoiceDetailPage({ params }: { params: Promise<{ id: st )} {/* Review in the browser (#1190); the download lives in the menu. */} {!isSelfBilled && ( -