mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix round team spend to 2 decimals
This commit is contained in:
parent
a0c5c402ae
commit
57d1efec1b
1 changed files with 5 additions and 0 deletions
|
@ -237,6 +237,11 @@ const UsagePage: React.FC<UsagePageProps> = ({
|
|||
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;
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue