fix: WalletCard.vue queries wrong GraphQL field (protocolStatssstatss) (#217)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
openhands 2026-02-24 18:41:37 +00:00
parent 1c4f0180f8
commit 541ff2df93

View file

@ -28,7 +28,7 @@ async function fetchWalletData(addr: string) {
totalEthSpent
totalTokensAcquired
}
protocolStatss(where: { id: "0x01" }) {
statss(where: { id: "0x01" }) {
items { currentPriceWei }
}
}`,
@ -37,7 +37,7 @@ async function fetchWalletData(addr: string) {
});
const json = await res.json();
holder.value = json?.data?.holders ?? null;
stats.value = json?.data?.protocolStatss?.items?.[0] ?? null;
stats.value = json?.data?.statss?.items?.[0] ?? null;
} catch {
holder.value = null;
} finally {