File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export function useWeb3React() {
94
94
return useMemo (
95
95
( ) => ( {
96
96
account : account . address ,
97
- chainId : account . chainId ?? ChainId . MAINNET ,
97
+ chainId : account . chainId ,
98
98
provider : wrappedProvider ,
99
99
library : wrappedProvider ,
100
100
connector : account . connector ,
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ export function useChangeNetwork() {
133
133
const wrappedSuccessCallback = ( ) =>
134
134
successCallback ( desiredChainId , waitUtilUpdatedChainId , customSuccessCallback )
135
135
// if connected, nothing todo, success return
136
- if ( desiredChainId === chainId && ! isWrongNetwork ) {
136
+ if ( desiredChainId === chainId && kyberChainId === chainId && ! isWrongNetwork ) {
137
137
customSuccessCallback ?.( )
138
138
return
139
139
}
You can’t perform that action at this time.
0 commit comments