Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(billing): update download button condition to render for invoices with PDF

Victor Hugo dos Santosd9e6db7c0092
diff --git a/frontend/src/pages/organization/BillingPage/components/BillingReceiptsTab/InvoicesTable.tsx b/frontend/src/pages/organization/BillingPage/components/BillingReceiptsTab/InvoicesTable.tsx
index 5018cd31d5..7c03ba5585 100644
--- a/frontend/src/pages/organization/BillingPage/components/BillingReceiptsTab/InvoicesTable.tsx
+++ b/frontend/src/pages/organization/BillingPage/components/BillingReceiptsTab/InvoicesTable.tsx
@@ -53,7 +53,7 @@ export const InvoicesTable = () => {
<Td>{paid ? "Paid" : "Not Paid"}</Td>
<Td>{formattedTotal}</Td>
<Td>
- {paid && (
+ {invoice_pdf && (
<IconButton
onClick={async () => window.open(invoice_pdf)}
size="lg"