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.

account for hold status in rowCount/commissionCount

Steven Tey2c5a49a9b65d
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/commissions-table.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/commissions-table.tsx
index 489887e32b..b037fb6b1c 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/commissions-table.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/commissions-table.tsx
@@ -359,7 +359,10 @@ export function CommissionsTable() {
thClassName: "border-l-0",
tdClassName: "border-l-0",
resourceName: (p) => `commission${p ? "s" : ""}`,
- rowCount: commissionsCount?.[searchParamsObj.status || "all"].count ?? 0,
+ rowCount:
+ commissionsCount?.[searchParamsObj.status || "all"]?.count ??
+ commissions?.length ??
+ 0,
loading: isLoading,
error: error ? "Failed to load commissions" : undefined,
});