Skip to content

Commit

Permalink
Fix build errors due to type-check (#1130)
Browse files Browse the repository at this point in the history
* Fix build errors due to yarn type-check
  • Loading branch information
Adamj1232 authored Jul 7, 2022
1 parent 878bd9c commit dc4d250
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/chain.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { firstValueFrom } from 'rxjs'
import { filter, mapTo } from 'rxjs/operators'
import { filter, map } from 'rxjs/operators'
import { ProviderRpcErrorCode } from '@web3-onboard/common'
import { addNewChain, switchChain } from './provider'
import { state } from './store'
Expand Down Expand Up @@ -62,7 +62,7 @@ async function setChain(options: {
const { code } = error as { code: number }
const switchChainModalClosed$ = switchChainModal$.pipe(
filter(x => x === null),
mapTo(false)
map(() => false)
)

if (code === ProviderRpcErrorCode.CHAIN_NOT_ADDED) {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
setPrimaryWallet
} from './store/actions'

import updateBalances from './updateBalances'
import updateBalances from './update-balances'

const API = {
connectWallet,
Expand Down
4 changes: 0 additions & 4 deletions packages/core/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ import type {
TokenSymbol
} from '@web3-onboard/common'

import type setChain from './chain'
import type connect from './connect'
import type disconnect from './disconnect'
import type { state } from './store'
import type en from './i18n/en.json'
import type { EthereumTransactionData, Network } from 'bnc-sdk'

Expand Down

0 comments on commit dc4d250

Please sign in to comment.