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 transactions.tsx

Tim Wilsonc2e0d390cd29
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/transactions.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/transactions.tsx
index 8ae5e4e77b..ab439628aa 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/transactions.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/payouts/transactions.tsx
@@ -11,6 +11,10 @@ import {
} from "@dub/utils";
import useSWR from "swr";
+const TRANSACTION_TYPES = {
+ payout: "Withdrawal",
+};
+
export const Transactions = () => {
const { id: workspaceId } = useWorkspace();
@@ -30,7 +34,8 @@ export const Transactions = () => {
},
{
header: "Type",
- accessorFn: (row) => capitalize(row.type),
+ accessorFn: (row) =>
+ capitalize(TRANSACTION_TYPES[row.type] ?? row.type),
},
{
header: "Amount",