fix: wallet api auth after solana purge

This commit is contained in:
2026-04-22 13:44:24 -04:00
parent f944b1f9b4
commit b7da2f2298
+3 -3
View File
@@ -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");