Merge pull request 'fix: WalletCard.vue queries wrong GraphQL field (protocolStatssstatss) (#217)' (#225) from fix/issue-217 into master

This commit is contained in:
johba 2026-02-24 20:03:31 +01:00
commit ad781e2a23

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 {