Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix: Ensure consistent USD formatting in billing table
Co-authored-by: michael <[email protected]>
  • Loading branch information
cursoragent and michael committed Sep 29, 2025
commit 3bdd229667c4bcc55c3b1e37369a42b67f575825
10 changes: 5 additions & 5 deletions web/src/ee/features/billing/components/BillingInvoiceTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function BillingInvoiceTable() {
size: 100,
cell: ({ row }) => {
const cents = row.original.breakdown?.subscriptionCents ?? 0;
return usdFormatter(cents / 100);
return usdFormatter(cents / 100, 2, 2);
},
},
{
Expand All @@ -155,7 +155,7 @@ export function BillingInvoiceTable() {
size: 90,
cell: ({ row }) => {
const cents = row.original.breakdown?.usageCents ?? 0;
return usdFormatter(cents / 100);
return usdFormatter(cents / 100, 2, 2);
},
},
{
Expand All @@ -165,7 +165,7 @@ export function BillingInvoiceTable() {
size: 90,
cell: ({ row }) => {
const cents = row.original.breakdown?.discountCents ?? 0;
return usdFormatter(cents / 100);
return usdFormatter(cents / 100, 2, 2);
},
},
{
Expand All @@ -175,7 +175,7 @@ export function BillingInvoiceTable() {
size: 90,
cell: ({ row }) => {
const cents = row.original.breakdown?.taxCents ?? 0;
return usdFormatter(cents / 100);
return usdFormatter(cents / 100, 2, 2);
},
},
{
Expand All @@ -185,7 +185,7 @@ export function BillingInvoiceTable() {
size: 90,
cell: ({ row }) => {
const cents = row.original.breakdown?.totalCents ?? 0;
return usdFormatter(cents / 100);
return usdFormatter(cents / 100, 2, 2);
},
},
{
Expand Down
Loading