Skip to content

Commit

Permalink
fix: ledger accounts not connecting
Browse files Browse the repository at this point in the history
  • Loading branch information
woodenfurniture committed May 7, 2024
1 parent 4e51a2b commit 5fea610
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/context/WalletProvider/Ledger/components/Chains.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ export const LedgerChains = () => {

const handleConnectClick = useCallback(
async (chainId: ChainId) => {
if (!walletState?.wallet) return
if (!walletState?.wallet) {
console.error('No wallet found')
return
}

setLoadingChains(prevLoading => ({ ...prevLoading, [chainId]: true }))

Expand Down Expand Up @@ -134,6 +137,7 @@ export const LedgerChains = () => {

dispatch(portfolio.actions.upsertAccountMetadata(payload))
dispatch(portfolio.actions.upsertPortfolio(account))
dispatch(portfolio.actions.enableAccountId(accountId))
return acc
}, {})

Expand Down

0 comments on commit 5fea610

Please sign in to comment.