From 2f7d2c4ff55e66295092662bee754477e99f9a1d Mon Sep 17 00:00:00 2001 From: liangping <18786721@qq.com> Date: Sat, 17 Jun 2023 20:00:52 +0800 Subject: [PATCH] add small improvement --- src/modules/[chain]/account/[address].vue | 14 +++++++------- src/modules/wallet/accounts.vue | 8 ++++---- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/modules/[chain]/account/[address].vue b/src/modules/[chain]/account/[address].vue index 42dea9cd..d65eb557 100644 --- a/src/modules/[chain]/account/[address].vue +++ b/src/modules/[chain]/account/[address].vue @@ -229,7 +229,12 @@ function updateEvent() { {{ format.formatToken(delegationItem?.balance) }}
- ≈${{ format.tokenValue(delegationItem?.balance) }} + {{ + format.calculatePercent( + delegationItem?.balance?.amount, + totalAmount + ) + }}
- {{ - format.calculatePercent( - delegationItem?.balance?.amount, - totalAmount - ) - }} + ${{ format.tokenValue(delegationItem?.balance) }}
diff --git a/src/modules/wallet/accounts.vue b/src/modules/wallet/accounts.vue index 47b8f02e..961f6cc5 100644 --- a/src/modules/wallet/accounts.vue +++ b/src/modules/wallet/accounts.vue @@ -307,7 +307,7 @@ async function loadBalances(endpoint: string, address: string) { @@ -326,7 +326,7 @@ async function loadBalances(endpoint: string, address: string) {