File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,12 @@ import { Address } from '@/features/accounts/data/types'
66import { useEffect , useMemo } from 'react'
77import { atomEffect } from 'jotai-effect'
88import algosdk from 'algosdk'
9- import { getNfdResultAtom } from '@/features/nfd/data/nfd-result'
109
1110const activeWalletAddressAtom = atom < Promise < Address | undefined > | ( Address | undefined ) > ( new Promise < Address | undefined > ( ( ) => { } ) )
1211export 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 }
You can’t perform that action at this time.
0 commit comments