Merge pull request 'fix: WalletCard.vue queries wrong GraphQL field (protocolStatss → statss) (#217)' (#225) from fix/issue-217 into master
This commit is contained in:
commit
ad781e2a23
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue