We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f0dfa0 commit 574b938Copy full SHA for 574b938
1 file changed
devconnect-app/src/hooks/useParaWallet.ts
@@ -6,6 +6,7 @@ import {
6
useWallet as useParaWallet,
7
} from '@getpara/react-sdk';
8
import { useState, useEffect } from 'react';
9
+import { useUser } from './useUser';
10
11
const PRIMARY_PARA_KEY = 'devconnect_para_primary';
12
@@ -18,6 +19,7 @@ export function useParaWalletConnection() {
18
19
const paraAccount = useParaAccount();
20
const paraWallet = useParaWallet();
21
const { logout, logoutAsync } = useLogout();
22
+ const { signOut } = useUser();
23
24
const [isDisconnecting, setIsDisconnecting] = useState(false);
25
@@ -82,6 +84,7 @@ export function useParaWalletConnection() {
82
84
console.error('❌ [PARA] Para disconnect failed:', error);
83
85
throw error;
86
} finally {
87
+ await signOut();
88
setIsDisconnecting(false);
89
}
90
};
0 commit comments