fix round team spend to 2 decimals

This commit is contained in:
Ishaan Jaff 2024-05-16 16:21:21 -07:00
parent a0c5c402ae
commit 57d1efec1b

View file

@ -237,6 +237,11 @@ const UsagePage: React.FC<UsagePageProps> = ({
total_spend_per_team = total_spend_per_team.map((tspt: any) => { total_spend_per_team = total_spend_per_team.map((tspt: any) => {
tspt["name"] = tspt["team_id"] || ""; tspt["name"] = tspt["team_id"] || "";
tspt["value"] = tspt["total_spend"] || 0; tspt["value"] = tspt["total_spend"] || 0;
// round the value to 2 decimal places
tspt["value"] = tspt["value"].toFixed(2);
return tspt; return tspt;
}) })