Skip to content

Commit 574b938

Browse files
committed
fix para disconnect
1 parent 4f0dfa0 commit 574b938

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

devconnect-app/src/hooks/useParaWallet.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
useWallet as useParaWallet,
77
} from '@getpara/react-sdk';
88
import { useState, useEffect } from 'react';
9+
import { useUser } from './useUser';
910

1011
const PRIMARY_PARA_KEY = 'devconnect_para_primary';
1112

@@ -18,6 +19,7 @@ export function useParaWalletConnection() {
1819
const paraAccount = useParaAccount();
1920
const paraWallet = useParaWallet();
2021
const { logout, logoutAsync } = useLogout();
22+
const { signOut } = useUser();
2123

2224
const [isDisconnecting, setIsDisconnecting] = useState(false);
2325

@@ -82,6 +84,7 @@ export function useParaWalletConnection() {
8284
console.error('❌ [PARA] Para disconnect failed:', error);
8385
throw error;
8486
} finally {
87+
await signOut();
8588
setIsDisconnecting(false);
8689
}
8790
};

0 commit comments

Comments
 (0)