From b7da2f22980a0aa43fec53a759b4295b899cc9ce Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Wed, 22 Apr 2026 13:44:24 -0400 Subject: [PATCH] fix: wallet api auth after solana purge --- frontend/src/app/dashboard/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/dashboard/page.tsx b/frontend/src/app/dashboard/page.tsx index 6a57e87..0d4eb4f 100644 --- a/frontend/src/app/dashboard/page.tsx +++ b/frontend/src/app/dashboard/page.tsx @@ -11,7 +11,7 @@ import { CardTitle, } from "@/components/ui/card"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; -import { overseerApi } from "@/lib/api"; +import { api, overseerApi } from "@/lib/api"; import { useSocket } from "@/lib/socket"; import { useStore } from "@/lib/store"; import { formatNumber } from "@/lib/utils"; @@ -57,10 +57,10 @@ export default function DashboardPage() { const loadData = async () => { try { const [walletRes, costsRes] = await Promise.all([ - fetch("/api/wallet").then((r) => r.json()), + api.get("/wallet"), overseerApi.getCosts(), ]); - setWallet(walletRes); + setWallet(walletRes.data); setRequestCosts(costsRes.data); } catch { toast.error("Failed to load dashboard");