From 9540f8690d20848a7e94d46aefdb98dcb545ec83 Mon Sep 17 00:00:00 2001 From: FlacoJones Date: Tue, 18 Jul 2023 16:22:39 -0400 Subject: [PATCH] adds showQrModal on WC provider --- components/Claim/ClaimPage/KycRequirement/index.jsx | 12 ++++++------ hooks/getWalletConnectProvider.jsx | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/components/Claim/ClaimPage/KycRequirement/index.jsx b/components/Claim/ClaimPage/KycRequirement/index.jsx index 5358b3340..85f62cecc 100644 --- a/components/Claim/ClaimPage/KycRequirement/index.jsx +++ b/components/Claim/ClaimPage/KycRequirement/index.jsx @@ -57,12 +57,12 @@ const KycRequirement = ({ setKycVerified }) => { try { if (!window?.ethereum) { try { - const kycLibrary = await getWalletConnectProvider(); - await kycLibrary.enable(); - provider = kycLibrary; - } catch (error) { - console.error('KycRequirement.1 error: ', error); - } + const kycLibrary = await getWalletConnectProvider(); + await kycLibrary.enable(); + provider = kycLibrary; + } catch (error) { + console.error('KycRequirement.1 error: ', error); + } } else { provider = window.ethereum; } diff --git a/hooks/getWalletConnectProvider.jsx b/hooks/getWalletConnectProvider.jsx index 3b70e9fb6..12342c00a 100755 --- a/hooks/getWalletConnectProvider.jsx +++ b/hooks/getWalletConnectProvider.jsx @@ -6,6 +6,7 @@ const getWalletConnectProvider = () => { const wcProvider = await EthereumProvider.init({ projectId: 'a6cc11517a10f6f12953fd67b1eb67e7', chains: [137], + showQrModal: false }); return resolve(wcProvider);