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.

Simplify partner invoices

Steven Teyb2504f013ed7
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 7aabb3d4ae..43b378331d 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
@@ -7,7 +7,6 @@ import {
DUB_WORDMARK,
EU_COUNTRY_CODES,
formatDate,
- pluralize,
} from "@dub/utils";
import {
Document,
@@ -46,11 +45,6 @@ export const GET = withPartnerProfile(async ({ partner, params }) => {
supportEmail: true,
},
},
- _count: {
- select: {
- commissions: true,
- },
- },
},
});
@@ -115,11 +109,7 @@ export const GET = withPartnerProfile(async ({ partner, params }) => {
label: "Payout amount",
value: (
<Text style={tw("text-neutral-800 w-2/3")}>
- {currencyFormatter(payout.amount / 100)}{" "}
- <Text style={tw("text-neutral-500")}>
- ({payout._count.commissions}{" "}
- {pluralize("commission", payout._count.commissions)})
- </Text>
+ {currencyFormatter(payout.amount / 100)}
</Text>
),
},