fix round team spend to 2 decimals

This commit is contained in:
Ishaan Jaff 2024-05-16 16:21:21 -07:00
parent e944ee372b
commit b10528b415

View file

@ -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;
})