Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
fix bugs
ErikKaumk062722ed3ba5
diff --git a/apps/docs/src/components/Dashboard/Billing.tsx b/apps/docs/src/components/Dashboard/Billing.tsxindex b33f9f000..e5470567f 100644--- a/apps/docs/src/components/Dashboard/Billing.tsx+++ b/apps/docs/src/components/Dashboard/Billing.tsx@@ -10,7 +10,7 @@ function formatCurrency(value: number) {return value.toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 })}-const invoiceUrl = `${process.env.NEXT_PUBLIC_BILLING_API_URL}/invoices`+const invoiceUrl = `${process.env.NEXT_PUBLIC_BILLING_API_URL}/teams/invoices`const creditsUrl = `${process.env.NEXT_PUBLIC_BILLING_API_URL}/teams/usage`interface Invoice {diff --git a/apps/docs/src/components/Dashboard/Usage.tsx b/apps/docs/src/components/Dashboard/Usage.tsxindex 0cba08984..042ea163d 100644--- a/apps/docs/src/components/Dashboard/Usage.tsx+++ b/apps/docs/src/components/Dashboard/Usage.tsx@@ -11,13 +11,21 @@ export const UsageContent = ({ currentApiKey }: { currentApiKey: string | null})useEffect(() => {const getUsage = async () => {+ setVcpuData(null)+ setRamData(null)+const response = await fetch(usageUrl, {headers: {'X-Team-API-Key': currentApiKey!}})+ if (!response.ok) {+ // TODO: Add sentry event here+ console.log(response)+ return+ }+const data = await response.json()- console.log(data)const { vcpuData, ramData, vcpuKeys, ramKeys } = transformData(data.usages)setVcpuData({@@ -102,8 +110,6 @@ const transformData = (usages: any) => {})})- console.log(vcpuData)-return {vcpuData,ramData,