Skip to content

Commit

Permalink
Wallet connect fix (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Apr 11, 2024
1 parent e88561b commit cfe1509
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/Modals/WalletConnect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -45,7 +49,7 @@ export const WalletModal = (props: WalletModalProps) => {
if (wallet) {
onConnect(wallet);
}
}, [isConnected]);
}, [isInitialized]);

return (
<Dialog {...props} fullWidth maxWidth='sm'>
Expand Down

0 comments on commit cfe1509

Please sign in to comment.