diff --git a/static/scripts/rewards/web3/connect-wallet.ts b/static/scripts/rewards/web3/connect-wallet.ts index 8fdc2dd7..77b43623 100644 --- a/static/scripts/rewards/web3/connect-wallet.ts +++ b/static/scripts/rewards/web3/connect-wallet.ts @@ -28,7 +28,10 @@ export async function connectWallet(): Promise { try { const wallet = new ethers.providers.Web3Provider(window.ethereum); - window.history.pushState({}, "", "/"); + if (mobileCheck()) { + // the param is too long and prevents a mobile user from connecting their wallet + window.history.pushState({}, "", "/"); + } await wallet.send("eth_requestAccounts", []);