@@ -6,7 +6,6 @@ import AccountDetails from '@components/pages/account-details/account-details';
6
6
import { useLoadAccounts } from '@hooks/use-load-accounts' ;
7
7
import { useNetwork } from '@hooks/use-network' ;
8
8
import { useAccountName } from '@hooks/use-account-name' ;
9
- import { useCurrentAccount } from '@hooks/use-current-account' ;
10
9
import { CommonFullContentLayout } from '@components/atoms' ;
11
10
import useLink from '@hooks/use-link' ;
12
11
import { AdenaStorage } from '@common/storage' ;
@@ -20,7 +19,6 @@ const AccountDetailsContainer: React.FC = () => {
20
19
const { accounts } = useLoadAccounts ( ) ;
21
20
const { currentNetwork } = useNetwork ( ) ;
22
21
const { accountNames, changeAccountName } = useAccountName ( ) ;
23
- const { changeCurrentAccount } = useCurrentAccount ( ) ;
24
22
const [ originName , setOriginName ] = useState ( '' ) ;
25
23
const [ name , setName ] = useState ( '' ) ;
26
24
const [ address , setAddress ] = useState < string > ( '' ) ;
@@ -55,9 +53,6 @@ const AccountDetailsContainer: React.FC = () => {
55
53
} , [ address ] ) ;
56
54
57
55
const moveExportPrivateKey = useCallback ( async ( ) => {
58
- if ( account ) {
59
- await changeCurrentAccount ( account ) ;
60
- }
61
56
const sessionStorage = AdenaStorage . session ( ) ;
62
57
await sessionStorage . set ( WALLET_EXPORT_TYPE_STORAGE_KEY , 'PRIVATE_KEY' ) ;
63
58
openSecurity ( ) ;
0 commit comments