Skip to content

Commit 869fe9e

Browse files
authored
Merge pull request #377 from algorandfoundation/fix-block-polling
fix: block polling fails with wallet connected
2 parents 4df9b84 + 30ef58a commit 869fe9e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/features/wallet/data/active-wallet.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ import { Address } from '@/features/accounts/data/types'
66
import { useEffect, useMemo } from 'react'
77
import { atomEffect } from 'jotai-effect'
88
import algosdk from 'algosdk'
9-
import { getNfdResultAtom } from '@/features/nfd/data/nfd-result'
109

1110
const activeWalletAddressAtom = atom<Promise<Address | undefined> | (Address | undefined)>(new Promise<Address | undefined>(() => {}))
1211
export const activeWalletAccountAtom = atomWithRefresh<Promise<ActiveWalletAccount | undefined>>(async (get) => {
1312
const activeWalletAddress = await get(activeWalletAddressAtom)
1413
if (activeWalletAddress) {
15-
const nfdResult = await get(getNfdResultAtom({ address: activeWalletAddress, resolveNow: true }))
16-
return { nfd: nfdResult?.name ?? null, ...(await getActiveWalletAccount(activeWalletAddress)) }
14+
return { nfd: null, ...(await getActiveWalletAccount(activeWalletAddress)) }
1715
} else {
1816
return undefined
1917
}

0 commit comments

Comments
 (0)