fix: wallet api auth after solana purge
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user