From 30623b8f17d5e930e3b50e059e47622f9f0afdeb Mon Sep 17 00:00:00 2001 From: alorig <220087330+alorig@users.noreply.github.com> Date: Sun, 9 Nov 2025 17:16:58 +0500 Subject: [PATCH] Update Usage.tsx --- frontend/src/pages/Billing/Usage.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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}`);