From cfe150925fa23c1e6431fdd634a39757ce91428d Mon Sep 17 00:00:00 2001 From: Sergej Sakac <73715684+Szegoo@users.noreply.github.com> Date: Thu, 11 Apr 2024 10:38:14 +0200 Subject: [PATCH] Wallet connect fix (#64) --- src/components/Modals/WalletConnect/index.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Modals/WalletConnect/index.tsx b/src/components/Modals/WalletConnect/index.tsx index 7338f680..b7ec4764 100644 --- a/src/components/Modals/WalletConnect/index.tsx +++ b/src/components/Modals/WalletConnect/index.tsx @@ -26,7 +26,11 @@ interface WalletModalProps { } export const WalletModal = (props: WalletModalProps) => { - const { connect: connectContract, activeChain, isConnected } = useInkathon(); + const { + connect: connectContract, + activeChain, + isInitialized, + } = useInkathon(); const { connectRelay } = useRelayApi(); const { connectCoretime } = useCoretimeApi(); @@ -45,7 +49,7 @@ export const WalletModal = (props: WalletModalProps) => { if (wallet) { onConnect(wallet); } - }, [isConnected]); + }, [isInitialized]); return (