Skip to content

Commit

Permalink
fix: remove param for mobile only
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Jul 17, 2024
1 parent 42df6df commit 50c41ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion static/scripts/rewards/web3/connect-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ export async function connectWallet(): Promise<JsonRpcSigner | null> {
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", []);

Expand Down

0 comments on commit 50c41ee

Please sign in to comment.