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.

Amount → Sale Amount

Steven Tey38ae9330ffef
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 6620bb65ba..0d3024a026 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
@@ -38,7 +38,6 @@ import {
currencyFormatter,
fetcher,
formatDateTimeSmart,
- nFormatter,
} from "@dub/utils";
import Link from "next/link";
import { useRouter } from "next/navigation";
@@ -225,11 +224,9 @@ export function CommissionsTable() {
},
{
id: "amount",
- header: "Amount",
+ header: "Sale Amount",
accessorFn: (d) =>
- d.type === "sale"
- ? currencyFormatter(d.amount)
- : nFormatter(d.quantity),
+ d.type === "sale" ? currencyFormatter(d.amount) : "-",
},
{
id: "commission",