Skip to content

Commit

Permalink
Merge pull request ubiquity#258 from ubq-testing/mobile-claim-param-r…
Browse files Browse the repository at this point in the history
…emoval

fix: remove param for mobile only
  • Loading branch information
0x4007 authored Jul 18, 2024
2 parents 42df6df + 50c41ee commit bd90e41
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 bd90e41

Please sign in to comment.