From 57d1efec1b73f6cdd98206ef7fbe35a44de39c66 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Thu, 16 May 2024 16:21:21 -0700 Subject: [PATCH] fix round team spend to 2 decimals --- ui/litellm-dashboard/src/components/usage.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/litellm-dashboard/src/components/usage.tsx b/ui/litellm-dashboard/src/components/usage.tsx index 5438337673..7bb348d1b5 100644 --- a/ui/litellm-dashboard/src/components/usage.tsx +++ b/ui/litellm-dashboard/src/components/usage.tsx @@ -237,6 +237,11 @@ const UsagePage: React.FC = ({ total_spend_per_team = total_spend_per_team.map((tspt: any) => { tspt["name"] = tspt["team_id"] || ""; tspt["value"] = tspt["total_spend"] || 0; + // round the value to 2 decimal places + + tspt["value"] = tspt["value"].toFixed(2); + + return tspt; })