Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/web3-shared/evm/hooks/useAssetsFromChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export function useAssetsFromChain(tokens: FungibleTokenDetailed[], chainId?: Ch
const balances = useBalances()
const currentBalance = useBalance()

const balance = chainId && balances && providerType ? balances[providerType][chainId] : currentBalance

const balance =
chainId && balances && balances[providerType] && providerType ? balances[providerType][chainId] : currentBalance
const chainDetailed = useChainDetailed()
const passedChainDetailed = getChainDetailed(chainId)

Expand Down