Skip to content

Commit dc4d250

Browse files
authored
Fix build errors due to type-check (#1130)
* Fix build errors due to yarn type-check
1 parent 878bd9c commit dc4d250

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

packages/core/src/chain.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { firstValueFrom } from 'rxjs'
2-
import { filter, mapTo } from 'rxjs/operators'
2+
import { filter, map } from 'rxjs/operators'
33
import { ProviderRpcErrorCode } from '@web3-onboard/common'
44
import { addNewChain, switchChain } from './provider'
55
import { state } from './store'
@@ -62,7 +62,7 @@ async function setChain(options: {
6262
const { code } = error as { code: number }
6363
const switchChainModalClosed$ = switchChainModal$.pipe(
6464
filter(x => x === null),
65-
mapTo(false)
65+
map(() => false)
6666
)
6767

6868
if (code === ProviderRpcErrorCode.CHAIN_NOT_ADDED) {

packages/core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
setPrimaryWallet
2626
} from './store/actions'
2727

28-
import updateBalances from './updateBalances'
28+
import updateBalances from './update-balances'
2929

3030
const API = {
3131
connectWallet,

packages/core/src/types.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ import type {
1010
TokenSymbol
1111
} from '@web3-onboard/common'
1212

13-
import type setChain from './chain'
14-
import type connect from './connect'
15-
import type disconnect from './disconnect'
16-
import type { state } from './store'
1713
import type en from './i18n/en.json'
1814
import type { EthereumTransactionData, Network } from 'bnc-sdk'
1915

0 commit comments

Comments
 (0)