diff --git a/src/hooks/wallets/useOnboard.ts b/src/hooks/wallets/useOnboard.ts index 2781d67d86..86847ecdfe 100644 --- a/src/hooks/wallets/useOnboard.ts +++ b/src/hooks/wallets/useOnboard.ts @@ -141,7 +141,7 @@ export const useInitOnboard = () => { const onboard = useStore() const customRpc = useAppSelector(selectRpc) - useInitPairing() + //useInitPairing() useEffect(() => { if (configs.length > 0 && chain) { diff --git a/src/services/pairing/hooks.ts b/src/services/pairing/hooks.ts index 3ef713b3e0..07292eb0f8 100644 --- a/src/services/pairing/hooks.ts +++ b/src/services/pairing/hooks.ts @@ -38,15 +38,15 @@ export const useInitPairing = () => { const canConnect = !connector?.connected && !isConnecting const isSupported = isPairingSupported(chain?.disabledWallets) - //useEffect(() => { - // const _pairingConnector = new WalletConnect({ - // bridge: WC_BRIDGE, - // storageId: local.getPrefixedKey(PAIRING_MODULE_STORAGE_ID), - // clientMeta: getClientMeta(), - // }) - - //setPairingConnector(_pairingConnector) - //}, []) + useEffect(() => { + const _pairingConnector = new WalletConnect({ + bridge: WC_BRIDGE, + storageId: local.getPrefixedKey(PAIRING_MODULE_STORAGE_ID), + clientMeta: getClientMeta(), + }) + + setPairingConnector(_pairingConnector) + }, []) const createSession = useCallback(() => { if (!canConnect || !chain || !isSupported || !onboard) {