darwinia-network / collator-staking-ui

Collator Staking UI
https://collator-staking.darwinia.network
Apache License 2.0
0 stars 2 forks source link

Need to add a Wrong Chain prompt and disable the function in staking in case of Wrong Chain (when clicking on the function button, a Wrong Chain prompt pops up) #43

Closed 1022ranji closed 1 year ago

1022ranji commented 1 year ago

Situation Description:

  1. the user successfully linked to the Darwinia Chain when first entering the staking page.
  2. The user switches to another Dapp and links to the Arbitrum Chain.
  3. When the user returns to darwinia staking, the page does not indicate that he is on the wrong chain, and the MetaMask pops up normally when he clicks on that page.

https://github.com/darwinia-network/darwinia2.0-staking-ui/assets/80877629/f7ee4f8d-6969-493b-a8ab-50fbe48341b4

Need to add a Wrong Chain prompt and disable the function in staking in case of Wrong Chain (when clicking on the function button, a Wrong Chain prompt pops up) You are connected to the Wrong Chain. Change the selected Chain to Darwinia in MetaMask.

image