Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix(billing): Fix invoice table decimal display (#9399)

Michael Fröhlichdecac0cd5a5b
diff --git a/web/src/ee/features/billing/components/BillingInvoiceTable.tsx b/web/src/ee/features/billing/components/BillingInvoiceTable.tsx
index 7b41c77c72..e23f2620af 100644
--- a/web/src/ee/features/billing/components/BillingInvoiceTable.tsx
+++ b/web/src/ee/features/billing/components/BillingInvoiceTable.tsx
@@ -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);
},
},
{
@@ -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);
},
},
{
@@ -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);
},
},
{
@@ -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);
},
},
{
@@ -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);
},
},
{