diff --git a/src/components/helper/DelegatedTotal.vue b/src/components/helper/DelegatedTotal.vue index 34ab2b8..54178bc 100644 --- a/src/components/helper/DelegatedTotal.vue +++ b/src/components/helper/DelegatedTotal.vue @@ -17,7 +17,9 @@ watch(height, async (newHeight, oldHeight) => { try { const dq = await getDelegatedAsync(address, newHeight.block[0].height); if (dq) { - delegated.value = dq.action_delegation_total?.coins as Coin[]; + delegated.value = dq.staked_balances.map((x) => { + return x.amount; + }); } else { delegated.value = []; } diff --git a/src/components/helper/UserBalance.vue b/src/components/helper/UserBalance.vue index 74cc877..7a66960 100644 --- a/src/components/helper/UserBalance.vue +++ b/src/components/helper/UserBalance.vue @@ -9,7 +9,7 @@ const { getBalance } = useChainData(); const balances = getBalance(address); const balance = computed(() => { - let bal = balances.value?.action_account_balance?.coins?.filter((x) => x.denom == denom)[0]; + let bal = balances.value?.action_account_balance[0].coins?.filter((x) => x.denom == denom)[0]; if (bal) { return bal; } else { diff --git a/src/components/history/VoteHistory.vue b/src/components/history/VoteHistory.vue index 90f2847..0b08ee8 100644 --- a/src/components/history/VoteHistory.vue +++ b/src/components/history/VoteHistory.vue @@ -63,12 +63,13 @@ function prev() { }