Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Add missing dep

Vasek Mlejnskybb0ba6d72ee6
diff --git a/apps/docs/src/utils/useUsage.tsx b/apps/docs/src/utils/useUsage.tsx
index 1d5a2eaa5..8b11bdc9f 100644
--- a/apps/docs/src/utils/useUsage.tsx
+++ b/apps/docs/src/utils/useUsage.tsx
@@ -50,32 +50,10 @@ export function useUsage() {
}).then(res => res.json()),
])
- // TODO: Fetch from API server
setCredits(c)
setUsage(u)
setIsLoading(false)
- // setCosts([
- // {
- // month: 2,
- // year: 2024,
- // total_costs: 23.85,
- // unpaid_costs: 23.85,
- // },
- // {
- // month: 1,
- // year: 2024,
- // total_costs: 232,
- // unpaid_costs: 0,
- // },
- // {
- // month: 12,
- // year: 2023,
- // total_costs: 32.221,
- // unpaid_costs: 0,
- // },
- // ])
-
- }, [user, supabase])
+ }, [user, supabase, apiKey])
useEffect(function () {
fetchCredits()