Skip to content

Commit

Permalink
adds showQrModal on WC provider
Browse files Browse the repository at this point in the history
  • Loading branch information
FlacoJones committed Jul 18, 2023
1 parent dbc5ea3 commit 9540f86
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions components/Claim/ClaimPage/KycRequirement/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
1 change: 1 addition & 0 deletions hooks/getWalletConnectProvider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const getWalletConnectProvider = () => {
const wcProvider = await EthereumProvider.init({
projectId: 'a6cc11517a10f6f12953fd67b1eb67e7',
chains: [137],
showQrModal: false
});

return resolve(wcProvider);
Expand Down

0 comments on commit 9540f86

Please sign in to comment.