chore(pdf): silence unused-vars on intentional totalAmount destructure

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
SJCoetz 2026-08-06 12:21:00 +02:00
parent 180288e6e3
commit 68dcdd565d

View file

@ -85,6 +85,12 @@ export function PurchaseOrderDocument({
generatedAtIso,
totalAmount,
}: PurchaseOrderDocumentProps) {
// `totalAmount` is kept on the interface and in the destructure for API
// backwards compat with the route handler — the printed Total is
// subtotal + vat, so the prop has no effect here. The `void` reference
// is the documented way to silence @typescript-eslint/no-unused-vars
// without losing the destructure.
void totalAmount;
const accent =
letterhead.accent_color ||
defaultAccentFor(