From ac09b2dcc3e63844e97b5e00503e6aa536aab489 Mon Sep 17 00:00:00 2001 From: Majorfi Date: Mon, 16 Oct 2023 11:51:14 +0200 Subject: [PATCH] fix: forknet balances --- apps/common/components/BalanceReminderPopover.tsx | 9 +++++++-- apps/common/contexts/useWallet.tsx | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/common/components/BalanceReminderPopover.tsx b/apps/common/components/BalanceReminderPopover.tsx index d063acc4e..6c6884fe6 100755 --- a/apps/common/components/BalanceReminderPopover.tsx +++ b/apps/common/components/BalanceReminderPopover.tsx @@ -7,6 +7,7 @@ import {IconAddToMetamask} from '@yearn-finance/web-lib/icons/IconAddToMetamask' import {IconCross} from '@yearn-finance/web-lib/icons/IconCross'; import {IconWallet} from '@yearn-finance/web-lib/icons/IconWallet'; import {toAddress, truncateHex} from '@yearn-finance/web-lib/utils/address'; +import {cl} from '@yearn-finance/web-lib/utils/cl'; import {formatAmount} from '@yearn-finance/web-lib/utils/format.number'; import {ImageWithFallback} from '@common/components/ImageWithFallback'; import {useWallet} from '@common/contexts/useWallet'; @@ -89,7 +90,7 @@ function TokenItem({element}: {element: TBalanceReminderElement}): ReactElement } export function BalanceReminderPopover(): ReactElement { - const {balances: tokens, isLoading, triggerForknetBalances} = useWallet(); + const {balances: tokens, isLoading, triggerForknetBalances, shouldUseForknetBalances} = useWallet(); const {address, ens, isActive, onDesactivate} = useWeb3(); const {vaults} = useYearn(); @@ -155,7 +156,11 @@ export function BalanceReminderPopover(): ReactElement {
-
+