Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/development' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Jul 18, 2024
2 parents 743aac2 + bd90e41 commit 54474af
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 54474af

Please sign in to comment.