Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update route.tsx

Kiran K5ecd145d9bab
diff --git a/apps/web/app/(ee)/partners.dub.co/invoices/[payoutId]/route.tsx b/apps/web/app/(ee)/partners.dub.co/invoices/[payoutId]/route.tsx
index ebdf55d2c3..de5b6656a9 100644
--- a/apps/web/app/(ee)/partners.dub.co/invoices/[payoutId]/route.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/invoices/[payoutId]/route.tsx
@@ -124,13 +124,29 @@ export const GET = withPartnerProfile(async ({ partner, params }) => {
label: "Payout reference number",
value: <Text style={tw("text-neutral-800 w-2/3")}>{payout.id}</Text>,
},
- ...(partner.invoiceInfo
+ ...(partner.companyName ||
+ partner.invoiceSettings?.address ||
+ partner.invoiceSettings?.taxId
? [
{
label: "Invoice info",
value: (
<Text style={tw("text-neutral-800 w-2/3")}>
- {partner.invoiceInfo}
+ {partner.companyName && (
+ <>
+ {partner.companyName}
+ {"\n"}
+ </>
+ )}
+ {partner.invoiceSettings?.address && (
+ <>
+ {partner.invoiceSettings.address}
+ {"\n"}
+ </>
+ )}
+ {partner.invoiceSettings?.taxId && (
+ <>Tax ID: {partner.invoiceSettings.taxId}</>
+ )}
</Text>
),
},