Closed 0xMageX closed 2 years ago
Issue fixed by commit b6cc903f21cf060115127862334a98b2afabd9e8
@keithfrazier98 I am still seeing "Rinkeby" when I choose unknown network. I guess just changing 'default' value in lib isn't enough. One of the ways it can be solved is to write a utility component/function/HOC that detects the current network and renders components accordingly. HOC can be middleware or function can be called within useEffect()
(e.g.) If detected network is supported, show normal flow - Tradex, StakeX and other screens. If detected network is unsupported, show "Error page"
Just tested again. It works now 👍 Closing the issue
TL;DR
Dapp must show 'Unknown' whenever unsupported network is selected in Web3 wallet (like Metamask). 33
Problem
Dapp shows 'Rinkeby' as default network whenever unsupported network is selected.
Solution
Dapp should show 'Unknown' whenever unsupported network is selected.
Comment
This probably should be solved in
datax.js
since default configuration comes fromConfig.ts
indatax.js
Check here