File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { firstValueFrom } from 'rxjs'
2
- import { filter , mapTo } from 'rxjs/operators'
2
+ import { filter , map } from 'rxjs/operators'
3
3
import { ProviderRpcErrorCode } from '@web3-onboard/common'
4
4
import { addNewChain , switchChain } from './provider'
5
5
import { state } from './store'
@@ -62,7 +62,7 @@ async function setChain(options: {
62
62
const { code } = error as { code : number }
63
63
const switchChainModalClosed$ = switchChainModal$ . pipe (
64
64
filter ( x => x === null ) ,
65
- mapTo ( false )
65
+ map ( ( ) => false )
66
66
)
67
67
68
68
if ( code === ProviderRpcErrorCode . CHAIN_NOT_ADDED ) {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import {
25
25
setPrimaryWallet
26
26
} from './store/actions'
27
27
28
- import updateBalances from './updateBalances '
28
+ import updateBalances from './update-balances '
29
29
30
30
const API = {
31
31
connectWallet,
Original file line number Diff line number Diff line change @@ -10,10 +10,6 @@ import type {
10
10
TokenSymbol
11
11
} from '@web3-onboard/common'
12
12
13
- import type setChain from './chain'
14
- import type connect from './connect'
15
- import type disconnect from './disconnect'
16
- import type { state } from './store'
17
13
import type en from './i18n/en.json'
18
14
import type { EthereumTransactionData , Network } from 'bnc-sdk'
19
15
You can’t perform that action at this time.
0 commit comments