diff --git a/packages/stateful/components/WalletTokenLine.tsx b/packages/stateful/components/WalletTokenLine.tsx index 970b1d5a0..3ca6fa126 100644 --- a/packages/stateful/components/WalletTokenLine.tsx +++ b/packages/stateful/components/WalletTokenLine.tsx @@ -3,7 +3,10 @@ import { useCachedLoading, } from '@dao-dao/stateless' import { TokenCardInfo, TokenLineProps } from '@dao-dao/types' -import { getDisplayNameForChainId } from '@dao-dao/utils' +import { + getDisplayNameForChainId, + transformBech32Address, +} from '@dao-dao/utils' import { useWallet } from '../hooks/useWallet' import { tokenCardLazyInfoSelector } from '../recoil' @@ -12,14 +15,13 @@ import { WalletTokenCard } from './WalletTokenCard' export const WalletTokenLine = ( props: Omit, 'TokenCard'> ) => { - const { address: walletAddress } = useWallet({ - chainId: props.token.chainId, - }) + // In case + const { address: walletAddress } = useWallet() const lazyInfo = useCachedLoading( walletAddress ? tokenCardLazyInfoSelector({ - owner: walletAddress, + owner: transformBech32Address(walletAddress, props.token.chainId), token: props.token, unstakedBalance: props.unstakedBalance, })