chore(pdf): silence unused-vars on intentional totalAmount destructure
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
parent
180288e6e3
commit
68dcdd565d
1 changed files with 6 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue