Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
debug data transform
ErikKaumk4bc6d68426e1
diff --git a/apps/docs/src/components/Dashboard/Usage.tsx b/apps/docs/src/components/Dashboard/Usage.tsxindex d10ef356f..4f1e58614 100644--- a/apps/docs/src/components/Dashboard/Usage.tsx+++ b/apps/docs/src/components/Dashboard/Usage.tsx@@ -90,12 +90,10 @@ export const UsageContent = ({ currentApiKey }: { currentApiKey: string | null})}const transformCostData = (costUsage: MonthlyCosts[]) => {- const costData = costUsage.map((usage: any) => {+ const costData = costUsage.map((usage: MonthlyCosts) => {return {x: `${String(usage.month).padStart(2, '0')}/${usage.year}`,- y: usage.template_usage.length > 0- ? usage.template_usage.reduce((acc: number, template: any) => acc + template.sandbox_hours, 0)- : 0,+ y: usage.total_cost,}})