Skip to content

Commit 10a9c66

Browse files
fix: disconnecting keplr (#2308)
1 parent 8f46299 commit 10a9c66

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

apps/namadillo/src/App/Layout/KeplrAccount.tsx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
import { connectedWalletsAtom } from "atoms/integrations";
2-
import { useWalletManager } from "hooks/useWalletManager";
32
import { wallets } from "integrations";
43
import { KeplrWalletManager } from "integrations/Keplr";
54
import { useAtom } from "jotai";
6-
import { useEffect } from "react";
75
import { AccountIconButton } from "./AccountIconButton";
86
import { DisconnectAccountIcon } from "./DisconnectAccountIcon";
97

108
export const KeplrAccount = (): JSX.Element => {
119
const [connectedWallets, setConnectedWallets] = useAtom(connectedWalletsAtom);
12-
const keplrWallet = new KeplrWalletManager();
13-
const { walletAddress: connectedKeplrAddress } =
14-
useWalletManager(keplrWallet);
15-
16-
useEffect(() => {
17-
if (!connectedKeplrAddress)
18-
setConnectedWallets((obj) => ({ ...obj, [keplrWallet.key]: false }));
19-
}, [connectedKeplrAddress]);
2010

2111
if (!connectedWallets.keplr) {
2212
return <></>;

0 commit comments

Comments
 (0)