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 create-commission-sheet.tsx

Steven Tey9a78c017c913
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx
index 21a9f170c0..e3b072ca0a 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/commissions/create-commission-sheet.tsx
@@ -26,7 +26,7 @@ import {
ToggleGroup,
useTable,
} from "@dub/ui";
-import { cn, fetcher, formatDateTime } from "@dub/utils";
+import { cn, currencyFormatter, fetcher, formatDateTime } from "@dub/utils";
import { CommissionType } from "@prisma/client";
import { useAction } from "next-safe-action/hooks";
import Link from "next/link";
@@ -239,7 +239,7 @@ function CreateCommissionSheetContent({
cell: ({ row }) => (
<span className="text-sm text-neutral-700">
{row.original.sale?.amount
- ? `$${(row.original.sale.amount / 100).toFixed(2)}`
+ ? currencyFormatter(row.original.sale.amount / 100)
: "-"}
</span>
),