Skip to content

Commit 2c5a49a

Browse files
committed
account for hold status in rowCount/commissionCount
1 parent 6388106 commit 2c5a49a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/commissions-table.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,10 @@ export function CommissionsTable() {
359359
thClassName: "border-l-0",
360360
tdClassName: "border-l-0",
361361
resourceName: (p) => `commission${p ? "s" : ""}`,
362-
rowCount: commissionsCount?.[searchParamsObj.status || "all"].count ?? 0,
362+
rowCount:
363+
commissionsCount?.[searchParamsObj.status || "all"]?.count ??
364+
commissions?.length ??
365+
0,
363366
loading: isLoading,
364367
error: error ? "Failed to load commissions" : undefined,
365368
});

0 commit comments

Comments
 (0)