File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Always connect to destination chain if available in PayEmbed
Original file line number Diff line number Diff line change @@ -271,8 +271,8 @@ function BuyScreenContent(props: BuyScreenContentProps) {
271
271
< WalletSwitcherConnectionScreen
272
272
accountAbstraction = { props . connectOptions ?. accountAbstraction }
273
273
appMetadata = { props . connectOptions ?. appMetadata }
274
- chain = { props . connectOptions ?. chain }
275
- chains = { props . connectOptions ?. chains }
274
+ chain = { toChain || props . connectOptions ?. chain }
275
+ chains = { [ toChain , ... ( props . connectOptions ?. chains || [ ] ) ] }
276
276
client = { props . client }
277
277
connectLocale = { props . connectLocale }
278
278
isEmbed = { props . isEmbed }
You can’t perform that action at this time.
0 commit comments