Skip to content

Dapp works well on desktop but not on mobile #3366

Discussion options

You must be logged in to vote

In your chain configuration array move the testnet to the last index. The first index is going to be used by wagmi as a required chain for the session and the rest as optional, since these wallets don't support testnet the connection will fail.

This should work:

const chains = [bsc, mainnet, polygon, bscTestnet]

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@frank-coder
Comment options

@glitch-txs
Comment options

Answer selected by frank-coder
@frank-coder
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants