Skip to content

Commit

Permalink
fix: show chain select modal for both XDEFI and CTRL (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlm-devico authored Oct 25, 2024
1 parent b5ec5d9 commit 22d968b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xdefi/wallets-connector",
"version": "2.3.4",
"version": "2.3.5",
"description": "Cross chain wallets connector with react hooks",
"author": "garageinc",
"license": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion src/components/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ export function WalletProvider({

const isRecommended = id === 'ctrl'

const shouldShowChainSelector = id === 'ctrl' || id === 'xdefi'

const handleClickProvider = () => {
if (isConnected || needInstall) return

if (isRecommended) {
if (shouldShowChainSelector) {
onShowChainSelector?.()
return
}
Expand Down

0 comments on commit 22d968b

Please sign in to comment.