Skip to content

Commit

Permalink
fix: wallet connect
Browse files Browse the repository at this point in the history
  • Loading branch information
viet-nv committed Apr 11, 2024
1 parent f5cb4e1 commit eb0d997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connection/activate.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChainId } from '@kyberswap/ks-sdk-core'
import { Connection } from 'connection/types'
import { Connection, ConnectionType } from 'connection/types'
import { atom } from 'jotai'
import { useAtomValue, useUpdateAtom } from 'jotai/utils'
import { useCallback } from 'react'
Expand Down Expand Up @@ -33,7 +33,7 @@ function useTryActivation() {
setActivationState({ status: ActivationStatus.PENDING, connection })

console.debug(`Connection activating: ${name}`)
await connection.connector.activate(chainId)
await connection.connector.activate(connection.type === ConnectionType.WALLET_CONNECT_V2 ? undefined : chainId)

console.debug(`Connection activated: ${name}`)

Expand Down

0 comments on commit eb0d997

Please sign in to comment.