DCFoundation / cosmos-proposal-builder

Governance Proposal Builder for Cosmos Network chains
https://cosgov.org
1 stars 10 forks source link

Connect Wallet > Silent error if network is not selected #43

Open 0xpatrickdev opened 8 months ago

0xpatrickdev commented 8 months ago

The Connect Wallet button relies on the currently selected network in order to build the payload for suggestChain.

Account for the scenario where a user tries to connect their wallet before a network is selected, either by disabling the button and/or visual feedback like a tooltip or toast.

```bash suggestChain: fetch https://undefined.agoric.net/network-config index-bc9f6562.js:40 (TypeError#1) index-bc9f6562.js:40 at suggestChain (https://cosgov.org/assets/index-bc9f6562.js:80:134769) at https://cosgov.org/assets/index-bc9f6562.js:98:41386 ``` image
gacogo commented 6 months ago

I think this might suffice? Screenshot 2024-05-01 at 11 42 56

0xpatrickdev commented 6 months ago

LGTM!

I think this might suffice?