diff --git a/frontend/src/pages/Billing/Usage.tsx b/frontend/src/pages/Billing/Usage.tsx index ced8d13e..2bd26c78 100644 --- a/frontend/src/pages/Billing/Usage.tsx +++ b/frontend/src/pages/Billing/Usage.tsx @@ -11,17 +11,16 @@ export default function Usage() { const [limits, setLimits] = useState([]); const [loading, setLoading] = useState(true); const [limitsLoading, setLimitsLoading] = useState(true); - const [currentPage, setCurrentPage] = useState(1); useEffect(() => { loadUsage(); loadLimits(); - }, [currentPage]); + }, []); const loadUsage = async () => { try { setLoading(true); - const response = await fetchCreditUsage({ page: currentPage }); + const response = await fetchCreditUsage({ page: 1 }); setUsageLogs(response.results || []); } catch (error: any) { toast.error(`Failed to load usage logs: ${error.message}`);