Skip to content

Commit

Permalink
react: fix hardcoded chain options in connected account modal
Browse files Browse the repository at this point in the history
  • Loading branch information
alecananian committed Sep 26, 2024
1 parent 8a812c5 commit 941d2e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-mice-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@treasure-dev/tdk-react": patch
---

Fixed hardcoded chain options in connected account modal
3 changes: 1 addition & 2 deletions packages/react/src/hooks/useConnect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
getContractAddresses,
} from "@treasure-dev/tdk-core";
import { ZERO_ADDRESS, defineChain } from "thirdweb";
import { arbitrum, arbitrumSepolia } from "thirdweb/chains";
import {
ConnectModal,
type Options as ConnectModalOptions,
Expand Down Expand Up @@ -93,7 +92,7 @@ export const useConnect = (props?: Props) => {
const openAccountModal = () =>
openWalletDetailsModal({
client,
chains: [arbitrum, arbitrumSepolia],
chains,
theme: THEME,
locale: getLocaleId(),
displayBalanceToken: chains.reduce(
Expand Down

0 comments on commit 941d2e6

Please sign in to comment.